HHH-10695 - Fix MySQL should not use the NCLOB type
(cherry picked from commit 455d86307b
)
This commit is contained in:
parent
f8393c9c20
commit
cdb11f9be2
|
@ -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',
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue