mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql parser.
This commit is contained in:
@@ -2755,9 +2755,12 @@ public class SQLStatementParser extends SQLParser {
|
||||
protected SQLAlterTableAddIndex parseAlterTableAddIndex() {
|
||||
SQLAlterTableAddIndex item = new SQLAlterTableAddIndex();
|
||||
|
||||
if (lexer.identifierEquals("FULLTEXT")) {
|
||||
if (lexer.identifierEquals(FnvHash.Constants.FULLTEXT)) {
|
||||
lexer.nextToken();
|
||||
item.setType("FULLTEXT");
|
||||
} else if (lexer.identifierEquals(FnvHash.Constants.SPATIAL)) {
|
||||
lexer.nextToken();
|
||||
item.setType("SPATIAL");
|
||||
}
|
||||
|
||||
if (lexer.token == Token.UNIQUE) {
|
||||
|
||||
Reference in New Issue
Block a user