bug fixed for issue #2582

This commit is contained in:
wenshao
2018-05-17 21:12:02 +08:00
parent d0a0aaf073
commit f45e3203f9
2 changed files with 53 additions and 1 deletions
@@ -4101,8 +4101,18 @@ public class MySqlStatementParser extends SQLStatementParser {
stmt.addItem(dropPartition);
} else if (lexer.token() == Token.IDENTIFIER) {
SQLAlterTableDropColumnItem item = new SQLAlterTableDropColumnItem();
this.exprParser.names(item.getColumns());
SQLName name = this.exprParser.name();
item.addColumn(name);
stmt.addItem(item);
if (lexer.token() == Token.COMMA) {
lexer.nextToken();
}
if (lexer.token() == Token.DROP) {
parseAlterDrop(stmt);
}
} else {
super.parseAlterDrop(stmt);
}