bug fixed for hibernate ddl

This commit is contained in:
wenshao
2013-04-04 10:01:12 +08:00
parent a12cf7ad31
commit 2e993b3cb5
@@ -523,6 +523,10 @@ public class MySqlExprParser extends SQLExprParser {
return parseColumnRest(column);
}
if (identifierEquals("precision") && column.getDataType().getName().equalsIgnoreCase("double")) {
lexer.nextToken();
}
if (identifierEquals("PARTITION")) {
throw new ParserException("syntax error " + lexer.token() + " " + lexer.stringVal());
}
@@ -589,7 +593,7 @@ public class MySqlExprParser extends SQLExprParser {
accept(Token.EQ);
}
}
item.setValue(this.expr());
item.setTarget(var);