[jOOQ/jOOQ#9930] Fixed regression for user-defined aggregate functions

This commit is contained in:
Lukas Eder 2020-03-10 16:17:11 +01:00
parent 21fa22a3c9
commit 194b387190
3 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ implements
// -------------------------------------------------------------------------
final void acceptArguments(Context<?> ctx) {
ctx.sql(getName());
ctx.visit(getQualifiedName());
ctx.sql('(');
acceptArguments0(ctx);
ctx.sql(')');

View File

@ -81,7 +81,7 @@ class DefaultAggregateFunction<T> extends AbstractAggregateFunction<T> {
}
DefaultAggregateFunction(boolean distinct, String name, DataType<T> type, Field<?>... arguments) {
this(distinct, DSL.name(name), type, arguments);
this(distinct, DSL.unquotedName(name), type, arguments);
}
DefaultAggregateFunction(boolean distinct, Name name, DataType<T> type, Field<?>... arguments) {
@ -153,6 +153,6 @@ class DefaultAggregateFunction<T> extends AbstractAggregateFunction<T> {
if (term != null)
ctx.sql(term.translate(ctx.dialect()));
else
ctx.sql(getName());
ctx.visit(getQualifiedName());
}
}

View File

@ -240,7 +240,7 @@ enum Term {
private final String translation;
private Term() {
this.name = DSL.name(name());
this.name = DSL.unquotedName(name());
this.keyword = DSL.keyword(name());
this.translation = name().toLowerCase();
}