HHH-10695 - Fix MySQL should not use the NCLOB type
This commit is contained in:
parent
34b63336a6
commit
455d86307b
|
@ -40,9 +40,9 @@ ext {
|
|||
mysql : [
|
||||
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',
|
||||
'jdbc.driver': 'com.mysql.jdbc.Driver',
|
||||
'jdbc.user' : 'dballo15',
|
||||
'jdbc.pass' : 'dballo15',
|
||||
'jdbc.url' : 'jdbc\\:mysql\\://db19.mw.lab.eng.bos.redhat.com\\:3306/dballo15'
|
||||
'jdbc.user' : 'hibernateormtest',
|
||||
'jdbc.pass' : 'hibernateormtest',
|
||||
'jdbc.url' : 'jdbc:mysql://localhost/hibernate_orm_test'
|
||||
],
|
||||
mariadb : [
|
||||
'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',
|
||||
|
|
|
@ -85,6 +85,7 @@ public class MySQLDialect extends Dialect {
|
|||
// registerColumnType( Types.BLOB, 16777215, "mediumblob" );
|
||||
// registerColumnType( Types.BLOB, 65535, "blob" );
|
||||
registerColumnType( Types.CLOB, "longtext" );
|
||||
registerColumnType( Types.NCLOB, "longtext" );
|
||||
// registerColumnType( Types.CLOB, 16777215, "mediumtext" );
|
||||
// registerColumnType( Types.CLOB, 65535, "text" );
|
||||
registerVarcharTypes();
|
||||
|
|
Loading…
Reference in New Issue