[jOOQ/jOOQ#11958] Fix regression in Firebird and others
This commit is contained in:
parent
b98c5952c8
commit
d747123421
@ -88,7 +88,7 @@ final class BoolAnd extends DefaultAggregateFunction<Boolean> {
|
||||
@Override
|
||||
public final void accept(Context<?> ctx) {
|
||||
if (EMULATE.contains(ctx.dialect()))
|
||||
ctx.visit(fo(DSL.min(DSL.when(condition, one()).otherwise(zero()))).eq(one()));
|
||||
ctx.visit(DSL.field(fo(DSL.min(DSL.when(condition, one()).otherwise(zero()))).eq(one())));
|
||||
else
|
||||
super.accept(ctx);
|
||||
}
|
||||
|
||||
@ -113,7 +113,7 @@ final class BoolOr extends DefaultAggregateFunction<Boolean> {
|
||||
@Override
|
||||
public final void accept(Context<?> ctx) {
|
||||
if (EMULATE.contains(ctx.dialect()))
|
||||
ctx.visit(fo(DSL.max(DSL.when(condition, one()).otherwise(zero()))).eq(one()));
|
||||
ctx.visit(DSL.field(fo(DSL.max(DSL.when(condition, one()).otherwise(zero()))).eq(one())));
|
||||
else
|
||||
super.accept(ctx);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user