Author: dkatayev
Date: 2010-06-29 10:36:32 -0400 (Tue, 29 Jun 2010)
New Revision: 2715
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java
Log:
EXOJCR-794 Type of the field "CONFIG" in the table "JCR_CONFIG"
changed from BLOB to LONGBLOB to be able to hold more than 65k bytes.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java 2010-06-29
13:01:48 UTC (rev 2714)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/config/JDBCConfigurationPersister.java 2010-06-29
14:36:32 UTC (rev 2715)
@@ -180,6 +180,10 @@
configTableName = configTableName.toUpperCase().toLowerCase(); // ingres needs
it
binType = "LONG BYTE";
}
+ else if (DBConstants.DB_DIALECT_MYSQL.equalsIgnoreCase(dialect)
+ || DBConstants.DB_DIALECT_MYSQL_UTF8.equalsIgnoreCase(dialect)) {
+ binType = "LONGBLOB";
+ }
this.initSQL =
"CREATE TABLE " + configTableName + " (" + "NAME
VARCHAR(64) NOT NULL, " + "CONFIG " + binType + " NOT NULL, "
Show replies by date