sql parser support alter table drop constraint

This commit is contained in:
wenshao
2013-05-26 21:52:28 +08:00
parent 799e31a18d
commit 12221ee91d
13 changed files with 282 additions and 18 deletions
@@ -2177,7 +2177,9 @@ public class MySqlStatementParser extends SQLStatementParser {
stmt.setName(this.exprParser.name());
for (;;) {
if (identifierEquals("ADD")) {
if (lexer.token() == Token.DROP) {
parseAlterDrop(stmt);
} else if (identifierEquals("ADD")) {
lexer.nextToken();
if (identifierEquals("COLUMN")) {