[jOOQ/jOOQ#9534] Add parser support

This commit is contained in:
Lukas Eder 2019-11-12 17:07:36 +01:00
parent 86e7fa40b4
commit 29b753dca8

View File

@ -3781,6 +3781,9 @@ final class ParserImpl implements Parser {
if (parseKeywordIf(ctx, "CONSTRAINT")) {
return parseCascadeRestrictIf(ctx, s1.dropConstraint(parseIdentifier(ctx)));
}
else if (parseKeywordIf(ctx, "UNIQUE")) {
return parseCascadeRestrictIf(ctx, s1.dropUnique(parseIdentifier(ctx)));
}
else if (parseKeywordIf(ctx, "PRIMARY KEY")) {
Name identifier = parseIdentifierIf(ctx);
return parseCascadeRestrictIf(ctx, identifier == null ? s1.dropPrimaryKey() : s1.dropPrimaryKey(identifier));