[jOOQ/jOOQ#9894] DB2: Support more standard aggregate functions

This commit is contained in:
Knut Wannheden 2020-02-27 14:21:17 +01:00
parent cf5ecafa7b
commit dc2554caed
2 changed files with 5 additions and 8 deletions

View File

@ -171,6 +171,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
@ -240,15 +242,15 @@ class Function<T> extends AbstractField<T> implements
@Override
public /* final */ void accept(Context<?> ctx) {
if (term == ARRAY_AGG && SUPPORT_ARRAY_AGG.contains(ctx.family())) {
if (term == ARRAY_AGG && SUPPORT_ARRAY_AGG.contains(ctx.dialect())) {
toSQLGroupConcat(ctx);
toSQLFilterClause(ctx);
toSQLOverClause(ctx);
}
else if (term == LIST_AGG && SUPPORT_GROUP_CONCAT.contains(ctx.family())) {
else if (term == LIST_AGG && SUPPORT_GROUP_CONCAT.contains(ctx.dialect())) {
toSQLGroupConcat(ctx);
}
else if (term == LIST_AGG && SUPPORT_STRING_AGG .contains(ctx.family())) {
else if (term == LIST_AGG && SUPPORT_STRING_AGG .contains(ctx.dialect())) {
toSQLStringAgg(ctx);
toSQLFilterClause(ctx);
toSQLOverClause(ctx);

View File

@ -146,11 +146,6 @@ enum Term {
case CUBRID:
case H2:
case HSQLDB: