mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser for mysql
This commit is contained in:
@@ -1421,7 +1421,9 @@ public class SQLExprParser extends SQLParser {
|
||||
|
||||
if (lexer.token == Token.UNIQUE) {
|
||||
lexer.nextToken();
|
||||
accept(Token.KEY);
|
||||
if (lexer.token() == Token.KEY) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
column.getConstaints().add(new SQLColumnPrimaryKey());
|
||||
return parseColumnRest(column);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user