[jOOQ/jOOQ#8592] Emulate CUME_DIST() for DB2 9 and 10
This commit is contained in:
parent
556ff3e36b
commit
cdae95bdd2
@ -92,6 +92,7 @@ import static org.jooq.impl.Keywords.K_WITHIN_GROUP;
|
||||
import static org.jooq.impl.SQLDataType.NUMERIC;
|
||||
import static org.jooq.impl.SelectQueryImpl.SUPPORT_WINDOW_CLAUSE;
|
||||
import static org.jooq.impl.Term.ARRAY_AGG;
|
||||
import static org.jooq.impl.Term.CUME_DIST;
|
||||
import static org.jooq.impl.Term.LIST_AGG;
|
||||
import static org.jooq.impl.Term.MEDIAN;
|
||||
import static org.jooq.impl.Term.MODE;
|
||||
@ -168,6 +169,8 @@ class Function<T> extends AbstractField<T> implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static final Field<Integer> ASTERISK = DSL.field("*", Integer.class);
|
||||
|
||||
// Mutually exclusive attributes: super.getName(), this.name, this.term
|
||||
@ -262,6 +265,14 @@ class Function<T> extends AbstractField<T> implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
else if (term == MODE && ( ctx.family() == H2 || ctx.family() == POSTGRES)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user