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