mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
sql parser support alter table drop constraint
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user