[#1257] Add CUBRID support - Fixed some issues

This commit is contained in:
Lukas Eder 2012-03-30 10:01:19 +00:00
parent 7d1c38ff3a
commit f5a713dc17
2 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,9 @@ class DateAdd<T> extends AbstractFunction<T> {
case ASE:
return function("dateadd", getDataType(), literal("day"), val(value), field);
case CUBRID:
return function("adddate", getDataType(), field, val(value));
case DB2:
case HSQLDB:
return field.add(field("? day", BigDecimal.class, value));

View File

@ -71,6 +71,9 @@ class DateSub<T> extends AbstractFunction<T> {
case ASE:
return function("dateadd", getDataType(), literal("day"), val(-value.intValue()), field);
case CUBRID:
return function("subdate", getDataType(), field, val(value));
case DB2:
case HSQLDB:
return field.sub(field("? day", BigDecimal.class, value));