mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for issue #2582
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user