[jOOQ/jOOQ#9930] Fixed regression for user-defined aggregate functions
This commit is contained in:
parent
21fa22a3c9
commit
194b387190
@ -111,7 +111,7 @@ implements
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
final void acceptArguments(Context<?> ctx) {
|
||||
ctx.sql(getName());
|
||||
ctx.visit(getQualifiedName());
|
||||
ctx.sql('(');
|
||||
acceptArguments0(ctx);
|
||||
ctx.sql(')');
|
||||
|
||||
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user