提交 e46a8da0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 124: Hibernate schema validation failed for decimal/numeric columns.

上级 1e09a772
...@@ -55,7 +55,7 @@ public class H2Dialect extends Dialect { ...@@ -55,7 +55,7 @@ public class H2Dialect extends Dialect {
registerColumnType(Types.TIMESTAMP, "timestamp"); registerColumnType(Types.TIMESTAMP, "timestamp");
registerColumnType(Types.VARCHAR, "varchar($l)"); registerColumnType(Types.VARCHAR, "varchar($l)");
registerColumnType(Types.VARBINARY, "binary($l)"); registerColumnType(Types.VARBINARY, "binary($l)");
registerColumnType(Types.NUMERIC, "numeric"); registerColumnType(Types.NUMERIC, "decimal($p,$s)");
registerColumnType(Types.BLOB, "blob"); registerColumnType(Types.BLOB, "blob");
registerColumnType(Types.CLOB, "clob"); registerColumnType(Types.CLOB, "clob");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论