mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved mysql parser support. bug fixed for issue #1310
This commit is contained in:
+1
-1
@@ -768,7 +768,7 @@ public class MySqlCreateTableParser extends SQLCreateTableParser {
|
||||
// lexer.nextToken();
|
||||
// }
|
||||
|
||||
if (lexer.token() == Token.IDENTIFIER) {
|
||||
if (lexer.token() == Token.IDENTIFIER || lexer.token() == Token.LITERAL_ALIAS) {
|
||||
SQLName indexName = this.exprParser.name();
|
||||
if (indexName != null) {
|
||||
key.setIndexName(indexName);
|
||||
|
||||
Reference in New Issue
Block a user