[jOOQ/jOOQ#12834] Support parsing empty column lists in INSERT statements

This commit is contained in:
Lukas Eder 2022-01-11 16:00:38 +01:00
parent b53ad7f1f7
commit 485103a3ff

View File

@ -2183,7 +2183,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
InsertSetStep<?> s1 = (with == null ? dsl.insertInto(table) : with.insertInto(table));
Field<?>[] fields = null;
if (!peekSelectOrWith(true) && parseIf('(')) {
if (!peekSelectOrWith(true) && parseIf('(') && !parseIf(')')) {
fields = parseList(',', c -> parseField()).toArray(EMPTY_FIELD);
parse(')');
}