Author: d.plentz
Date: 2007-09-29 15:38:05 -0400 (Sat, 29 Sep 2007)
New Revision: 14036
Modified:
core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java
Log:
[HHH-2261] Setting hibernate.hbm2ddl.auto=validate causes problems on mySQL with numeric
fields
Modified: core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java 2007-09-29
17:20:17 UTC (rev 14035)
+++ core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java 2007-09-29
19:38:05 UTC (rev 14036)
@@ -36,7 +36,7 @@
registerColumnType( Types.VARBINARY, 16777215, "mediumblob" );
registerColumnType( Types.VARBINARY, 65535, "blob" );
registerColumnType( Types.VARBINARY, 255, "tinyblob" );
- registerColumnType( Types.NUMERIC, "numeric($p,$s)" );
+ registerColumnType( Types.NUMERIC, "decimal($p,$s)" );
registerColumnType( Types.BLOB, "longblob" );
registerColumnType( Types.BLOB, 16777215, "mediumblob" );
registerColumnType( Types.BLOB, 65535, "blob" );