[jOOQ/jOOQ#7900] Added Oracle support
This commit is contained in:
parent
1242fd6763
commit
83d79bb9e4
@ -44,7 +44,6 @@ import static org.jooq.DatePart.MICROSECOND;
|
||||
import static org.jooq.DatePart.MILLISECOND;
|
||||
import static org.jooq.DatePart.QUARTER;
|
||||
import static org.jooq.DatePart.YEAR;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.FIREBIRD;
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.impl.DSL.function;
|
||||
@ -186,6 +185,8 @@ final class DateDiff<T> extends AbstractField<Integer> {
|
||||
|
||||
|
||||
|
||||
|
||||
case CUBRID:
|
||||
case POSTGRES:
|
||||
switch (p) {
|
||||
case MILLENNIUM:
|
||||
@ -208,6 +209,7 @@ final class DateDiff<T> extends AbstractField<Integer> {
|
||||
|
||||
|
||||
|
||||
|
||||
// [#4481] Parentheses are important in case this expression is
|
||||
// placed in the context of other arithmetic
|
||||
ctx.sql('(').visit(date1).sql(" - ").visit(date2).sql(')');
|
||||
@ -234,16 +236,6 @@ final class DateDiff<T> extends AbstractField<Integer> {
|
||||
|
||||
|
||||
|
||||
case CUBRID:
|
||||
|
||||
// [#4481] Parentheses are important in case this expression is
|
||||
// placed in the context of other arithmetic
|
||||
ctx.sql('(').visit(date1).sql(" - ").visit(date2).sql(')');
|
||||
return;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user