OPENJPA-735: OpenJPA support for SolidDB

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@988164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Fay Wang 2010-08-23 16:01:45 +00:00
parent 2c188f1113
commit f0f3a4c588
2 changed files with 2 additions and 2 deletions

View File

@ -64,11 +64,10 @@ class CurrentDate
public Object getValue(Object[] params) {
try {
_type.getConstructor(long.class).newInstance(System.currentTimeMillis());
return _type.getConstructor(long.class).newInstance(System.currentTimeMillis());
} catch (Exception e) {
return new Date();
}
return null;
}
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) {

View File

@ -119,6 +119,7 @@ public class SolidDBDictionary
supportsNullUniqueColumn = false;
concatenateFunction = "CONCAT({0},{1})";
stringLengthFunction = "LENGTH({0})";
trimLeadingFunction = "LTRIM({0})";
trimTrailingFunction = "RTRIM({0})";
trimBothFunction = "TRIM({0})";