case H2:
case HSQLDB:
return field("{datediff}('day', {0}, {1})", getDataType(), date2, date1);
case INGRES:
throw new SQLDialectNotSupportedException("Date time arithmetic not supported in Ingres. Contributions welcome!");
case SQLITE:
return field("({strftime}('%s', {0}) - {strftime}('%s', {1})) / 86400", getDataType(), date1, date2);
case CUBRID: