Author: steve.ebersole(a)jboss.com
Date: 2007-10-17 01:25:29 -0400 (Wed, 17 Oct 2007)
New Revision: 14094
Modified:
core/branches/Branch_3_2/src/org/hibernate/dialect/MySQL5Dialect.java
core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java
Log:
HHH-2669 : MySQL + LOB sizes
Modified: core/branches/Branch_3_2/src/org/hibernate/dialect/MySQL5Dialect.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/dialect/MySQL5Dialect.java 2007-10-17
05:23:28 UTC (rev 14093)
+++ core/branches/Branch_3_2/src/org/hibernate/dialect/MySQL5Dialect.java 2007-10-17
05:25:29 UTC (rev 14094)
@@ -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/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java 2007-10-17
05:23:28 UTC (rev 14093)
+++ core/branches/Branch_3_2/src/org/hibernate/dialect/MySQLDialect.java 2007-10-17
05:25:29 UTC (rev 14094)
@@ -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)" );
}