fix unique bug

This commit is contained in:
bucketli
2015-04-20 09:38:23 +08:00
parent 1d66501ffe
commit bff2a6f9e6
3 changed files with 65 additions and 2 deletions
@@ -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);
}