[jOOQ/jOOQ#9478] Support parsing ALTER TABLE .. ALTER COLUMN .. SET NULL

syntax
This commit is contained in:
Lukas Eder 2019-10-31 10:54:40 +01:00
parent 85ce843bac
commit 3d0cc51db2

View File

@ -4042,7 +4042,7 @@ final class ParserImpl implements Parser {
TableField<?, ?> field = parseFieldName(ctx);
if (!paren)
if (parseKeywordIf(ctx, "DROP NOT NULL") || parseKeywordIf(ctx, "NULL"))
if (parseKeywordIf(ctx, "DROP NOT NULL") || parseKeywordIf(ctx, "SET NULL") || parseKeywordIf(ctx, "NULL"))
return s1.alter(field).dropNotNull();
else if (parseKeywordIf(ctx, "DROP DEFAULT"))
return s1.alter(field).dropDefault();