[jOOQ/jOOQ#8950] Fixed parser regression

This commit is contained in:
Lukas Eder 2020-03-11 16:24:10 +01:00
parent a5962b8d7f
commit e6247d4667

View File

@ -6680,6 +6680,8 @@ final class ParserImpl implements Parser {
private static final Field<?> parseFieldJSONArrayConstructorIf(ParserContext ctx) {
if (parseKeywordIf(ctx, "JSON_ARRAY")) {
parse(ctx, '(');
if (parseIf(ctx, ')'))
return DSL.jsonArray();
List<Field<?>> result = null;
JSONNullClause nullClause = parseJSONObjectNullClauseIf(ctx);