[jOOQ/jOOQ#10572] Wrong DSL::countDistinct method used by parser
Parser is parsing countDistinct(Field[]) regardless of the number of argument fields, rather than countDistinct(Field). This may lead to some tests being skipped for dialects that do not support countDistinct(Field[])
This commit is contained in:
parent
5ece382977
commit
cf80bc723c
@ -10886,10 +10886,10 @@ final class ParserContext {
|
||||
if (distinct)
|
||||
if (fields == null)
|
||||
return countDistinct(asterisk);
|
||||
else if (fields.length > 0)
|
||||
return countDistinct(fields);
|
||||
else
|
||||
else if (fields.length == 1)
|
||||
return countDistinct(fields[0]);
|
||||
else
|
||||
return countDistinct(fields);
|
||||
else if (fields == null)
|
||||
return count(asterisk);
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user