mirror of https://github.com/apache/openjpa.git
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:
parent
2c188f1113
commit
f0f3a4c588
|
@ -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) {
|
||||
|
|
|
@ -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})";
|
||||
|
|
Loading…
Reference in New Issue