[jOOQ/jOOQ#10098] Support parsing SQL Server multi-column ADD syntax

This commit is contained in:
Lukas Eder 2020-04-24 11:52:14 +02:00
parent 49b5a7f243
commit 4c45c6394e

View File

@ -4263,7 +4263,7 @@ final class ParserImpl implements Parser {
do {
parseAlterTableAddFieldsOrConstraints(ctx, list);
}
while (parseIf(ctx, ',') && parseKeyword(ctx, "ADD"));
while (parseIf(ctx, ',') && (parseKeywordIf(ctx, "ADD") || !peekKeyword(ctx, "ALTER", "COMMENT", "DROP", "MODIFY", "OWNER TO", "RENAME")));
}
if (list.size() == 1)