Fix for #236 - OptimisticLockException when saving a model the second time with joda DateTime and mysql 5.6

This commit is contained in:
rbygrave
2015-02-03 00:57:58 +13:00
parent b8a7017ffd
commit 30e02de6f3
@@ -37,7 +37,7 @@ public class MySqlPlatform extends DatabasePlatform {
dbTypeMap.put(Types.BIT, new DbType("tinyint(1) default 0"));
dbTypeMap.put(Types.BOOLEAN, new DbType("tinyint(1) default 0"));
dbTypeMap.put(Types.TIMESTAMP, new DbType("datetime"));
dbTypeMap.put(Types.TIMESTAMP, new DbType("datetime(6)"));
dbTypeMap.put(Types.CLOB, new MySqlClob());
dbTypeMap.put(Types.BLOB, new MySqlBlob());
dbTypeMap.put(Types.BINARY, new DbType("binary", 255));