[jOOQ/jOOQ#19294] COUNT(table) emulation does not maintain FILTER or
OVER clauses
This commit is contained in:
parent
5c7a6f763b
commit
bb7fdf573b
@ -41,7 +41,6 @@ import org.jooq.Context;
|
||||
import org.jooq.QueryPart;
|
||||
// ...
|
||||
import org.jooq.Table;
|
||||
// ...
|
||||
import org.jooq.UniqueKey;
|
||||
|
||||
/**
|
||||
@ -95,7 +94,7 @@ final class CountTable extends AbstractAggregateFunction<Integer> implements QOM
|
||||
UniqueKey<?> pk = table.getPrimaryKey();
|
||||
|
||||
if (pk != null)
|
||||
ctx.visit(new DefaultAggregateFunction<>(distinct, "count", SQLDataType.INTEGER, table.fields(pk.getFieldsArray())));
|
||||
ctx.visit(fo(new DefaultAggregateFunction<>(distinct, "count", SQLDataType.INTEGER, table.fields(pk.getFieldsArray()))));
|
||||
else
|
||||
super.accept(ctx);
|
||||
|
||||
@ -128,15 +127,6 @@ final class CountTable extends AbstractAggregateFunction<Integer> implements QOM
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user