[#7171] Support parsing ALTER TABLE .. DROP INDEX

This commit is contained in:
lukaseder 2018-04-10 12:54:02 +02:00
parent 19adb82837
commit 44ee67240f

View File

@ -2643,6 +2643,10 @@ final class ParserImpl implements Parser {
return s1.dropConstraint(constraint);
}
else if (parseKeywordIf(ctx, "INDEX")) {
Name index = parseIdentifier(ctx);
return ctx.dsl.dropIndex(index).on(tableName);
}
else {
parseKeywordIf(ctx, "COLUMN");
boolean parens = parseIf(ctx, '(');