bug fixed for mysql parser support. for issue #2591

This commit is contained in:
wenshao
2018-05-25 21:20:20 +08:00
parent f45e3203f9
commit 27abec586f
@@ -2828,6 +2828,15 @@ public class SQLStatementParser extends SQLParser {
}
accept(Token.RPAREN);
if (JdbcConstants.MYSQL.equals(dbType)) {
if (lexer.identifierEquals(FnvHash.Constants.USING)) {
lexer.nextToken();
String indexType = lexer.stringVal;
item.setType(indexType);
accept(Token.IDENTIFIER);
}
}
if (lexer.token == Token.COMMENT) {
lexer.nextToken();
SQLExpr comment = this.exprParser.primary();