[jOOQ/jOOQ#12602] Parse INSERT .. SELECT without column list

This commit is contained in:
Lukas Eder 2021-11-04 11:23:46 +01:00
parent de274b5f3f
commit 81be95e884

View File

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