[jOOQ/jOOQ#9354] WIP: Support for ALTER TABLE .. ALTER .. DROP DEFAULT

This commit is contained in:
lukaseder 2019-10-11 21:21:54 +02:00
parent 0286bb7e49
commit ec553758a9

View File

@ -4043,6 +4043,8 @@ final class ParserImpl implements Parser {
if (!paren)
if (parseKeywordIf(ctx, "DROP NOT NULL") || parseKeywordIf(ctx, "NULL"))
return s1.alter(field).dropNotNull();
else if (parseKeywordIf(ctx, "DROP DEFAULT"))
return s1.alter(field).dropDefault();
else if (parseKeywordIf(ctx, "SET NOT NULL") || parseKeywordIf(ctx, "NOT NULL"))
return s1.alter(field).setNotNull();
else if (parseKeywordIf(ctx, "SET DEFAULT"))