[jOOQ/jOOQ#16302] Can't parse MySQL ALTER TABLE .. DROP .., DROP .. syntax

This commit is contained in:
Lukas Eder 2024-02-19 12:45:27 +01:00
parent a59cdf8136
commit e05761b9e8

View File

@ -5529,7 +5529,10 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
List<Field<?>> fields = null;
if (!ifColumnExists) {
while (parseIf(',') || parseKeywordIf("DROP") && (parseKeywordIf("COLUMN") || true)) {
while (parseIf(',')
&& (parseKeywordIf("DROP") || true) && (parseKeywordIf("COLUMN") || true)
|| parseKeywordIf("DROP") && (parseKeywordIf("COLUMN") || true)
) {
if (fields == null) {
fields = new ArrayList<>();
fields.add(field);