improved mysql parser add_index support. for issue #1645

This commit is contained in:
wenshao
2017-03-23 23:10:58 +08:00
parent c607356412
commit cd8b7dce11
3 changed files with 40 additions and 2 deletions
@@ -2126,6 +2126,16 @@ public class SQLStatementParser extends SQLParser {
lexer.nextToken();
} else {
item.setName(this.exprParser.name());
if (JdbcConstants.MYSQL.equals(dbType)) {
if (identifierEquals("USING")) {
lexer.nextToken();
String indexType = lexer.stringVal;
item.setType(indexType);
accept(Token.IDENTIFIER);
}
}
accept(Token.LPAREN);
}