[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:
Lukas Eder 2021-02-12 16:33:06 +01:00
parent 5ece382977
commit cf80bc723c

View File

@ -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