HHH-10695 - Fix MySQL should not use the NCLOB type

(cherry picked from commit 455d86307b)
This commit is contained in:
Andrea Boriero 2016-04-22 11:38:47 +01:00 committed by Gail Badner
parent f8393c9c20
commit cdb11f9be2
2 changed files with 4 additions and 3 deletions

View File

@ -33,9 +33,9 @@ ext {
mysql : [ mysql : [
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect', 'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',
'jdbc.driver': 'com.mysql.jdbc.Driver', 'jdbc.driver': 'com.mysql.jdbc.Driver',
'jdbc.user' : 'dballo15', 'jdbc.user' : 'hibernateormtest',
'jdbc.pass' : 'dballo15', 'jdbc.pass' : 'hibernateormtest',
'jdbc.url' : 'jdbc\\:mysql\\://db19.mw.lab.eng.bos.redhat.com\\:3306/dballo15' 'jdbc.url' : 'jdbc:mysql://localhost/hibernate_orm_test'
], ],
mariadb : [ mariadb : [
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect', 'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',

View File

@ -85,6 +85,7 @@ public class MySQLDialect extends Dialect {
// registerColumnType( Types.BLOB, 16777215, "mediumblob" ); // registerColumnType( Types.BLOB, 16777215, "mediumblob" );
// registerColumnType( Types.BLOB, 65535, "blob" ); // registerColumnType( Types.BLOB, 65535, "blob" );
registerColumnType( Types.CLOB, "longtext" ); registerColumnType( Types.CLOB, "longtext" );
registerColumnType( Types.NCLOB, "longtext" );
// registerColumnType( Types.CLOB, 16777215, "mediumtext" ); // registerColumnType( Types.CLOB, 16777215, "mediumtext" );
// registerColumnType( Types.CLOB, 65535, "text" ); // registerColumnType( Types.CLOB, 65535, "text" );
registerVarcharTypes(); registerVarcharTypes();