mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix unique bug
This commit is contained in:
@@ -1516,7 +1516,7 @@ public class SQLExprParser extends SQLParser {
|
||||
if (lexer.token() == Token.KEY) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
column.getConstraints().add(new SQLColumnPrimaryKey());
|
||||
column.getConstraints().add(new SQLColumnUniqueKey());
|
||||
return parseColumnRest(column);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user