[jOOQ/jOOQ#19206] Fix regression
This commit is contained in:
parent
38aa42ad37
commit
8537aff9c7
@ -11161,7 +11161,9 @@ final class DefaultParseContext extends AbstractParseContext implements ParseCon
|
||||
}
|
||||
|
||||
private final Field<?> parseArrayValueConstructorIf(boolean requireArrayKeyword) {
|
||||
if (requireArrayKeyword |= parseKeywordIf("ARRAY") || !requireArrayKeyword) {
|
||||
boolean array = false;
|
||||
|
||||
if ((array = parseKeywordIf("ARRAY")) || !requireArrayKeyword) {
|
||||
if (parseIf('[')) {
|
||||
List<Field<?>> fields;
|
||||
|
||||
@ -11176,13 +11178,13 @@ final class DefaultParseContext extends AbstractParseContext implements ParseCon
|
||||
// Prevent "wrong" javac method bind
|
||||
return DSL.array((Collection) fields);
|
||||
}
|
||||
else if (requireArrayKeyword && parseIf('(')) {
|
||||
else if (array && parseIf('(')) {
|
||||
SelectQueryImpl select = parseWithOrSelect(1);
|
||||
parse(')');
|
||||
|
||||
return DSL.array(select);
|
||||
}
|
||||
else if (requireArrayKeyword)
|
||||
else if (array)
|
||||
throw expected("[", "(");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user