Author: steve.ebersole(a)jboss.com
Date: 2007-10-17 01:23:28 -0400 (Wed, 17 Oct 2007)
New Revision: 14093
Modified:
core/trunk/core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java
core/trunk/core/src/main/java/org/hibernate/dialect/MySQLDialect.java
Log:
HHH-2669 : MySQL + LOB sizes
Modified: core/trunk/core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java 2007-10-17
05:08:57 UTC (rev 14092)
+++ core/trunk/core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java 2007-10-17
05:23:28 UTC (rev 14093)
@@ -10,7 +10,7 @@
public class MySQL5Dialect extends MySQLDialect {
protected void registerVarcharTypes() {
registerColumnType( Types.VARCHAR, "longtext" );
- registerColumnType( Types.VARCHAR, 16777215, "mediumtext" );
+// registerColumnType( Types.VARCHAR, 16777215, "mediumtext" );
registerColumnType( Types.VARCHAR, 65535, "varchar($l)" );
}
}
Modified: core/trunk/core/src/main/java/org/hibernate/dialect/MySQLDialect.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/dialect/MySQLDialect.java 2007-10-17
05:08:57 UTC (rev 14092)
+++ core/trunk/core/src/main/java/org/hibernate/dialect/MySQLDialect.java 2007-10-17
05:23:28 UTC (rev 14093)
@@ -38,11 +38,11 @@
registerColumnType( Types.VARBINARY, 255, "tinyblob" );
registerColumnType( Types.NUMERIC, "decimal($p,$s)" );
registerColumnType( Types.BLOB, "longblob" );
- registerColumnType( Types.BLOB, 16777215, "mediumblob" );
- registerColumnType( Types.BLOB, 65535, "blob" );
+// registerColumnType( Types.BLOB, 16777215, "mediumblob" );
+// registerColumnType( Types.BLOB, 65535, "blob" );
registerColumnType( Types.CLOB, "longtext" );
- registerColumnType( Types.CLOB, 16777215, "mediumtext" );
- registerColumnType( Types.CLOB, 65535, "text" );
+// registerColumnType( Types.CLOB, 16777215, "mediumtext" );
+// registerColumnType( Types.CLOB, 65535, "text" );
registerVarcharTypes();
registerFunction("ascii", new StandardSQLFunction("ascii",
Hibernate.INTEGER) );
@@ -155,8 +155,8 @@
protected void registerVarcharTypes() {
registerColumnType( Types.VARCHAR, "longtext" );
- registerColumnType( Types.VARCHAR, 16777215, "mediumtext" );
- registerColumnType( Types.VARCHAR, 65535, "text" );
+// registerColumnType( Types.VARCHAR, 16777215, "mediumtext" );
+// registerColumnType( Types.VARCHAR, 65535, "text" );
registerColumnType( Types.VARCHAR, 255, "varchar($l)" );
}