HHH-3965: registered some more columntypes as varchar(max) and varbinary(max)
This commit is contained in:
parent
c9833f3eaa
commit
2964b975ef
|
@ -43,12 +43,13 @@ public class SQLServer2005Dialect extends SQLServerDialect {
|
||||||
// HHH-3965 fix
|
// HHH-3965 fix
|
||||||
// As per http://www.sql-server-helper.com/faq/sql-server-2005-varchar-max-p01.aspx
|
// As per http://www.sql-server-helper.com/faq/sql-server-2005-varchar-max-p01.aspx
|
||||||
// use varchar(max) and varbinary(max) instead of TEXT and IMAGE types
|
// use varchar(max) and varbinary(max) instead of TEXT and IMAGE types
|
||||||
|
registerColumnType( Types.BLOB, "varbinary(MAX)" );
|
||||||
registerColumnType( Types.VARBINARY, "varbinary(MAX)" );
|
registerColumnType( Types.VARBINARY, "varbinary(MAX)" );
|
||||||
registerColumnType( Types.VARBINARY, MAX_LENGTH, "varbinary($l)" );
|
registerColumnType( Types.VARBINARY, MAX_LENGTH, "varbinary($l)" );
|
||||||
|
|
||||||
registerColumnType( Types.LONGVARBINARY, "varbinary(MAX)" );
|
registerColumnType( Types.LONGVARBINARY, "varbinary(MAX)" );
|
||||||
registerColumnType( Types.LONGVARCHAR, "varchar(MAX)" );
|
|
||||||
|
|
||||||
|
registerColumnType( Types.CLOB, "varchar(MAX)" );
|
||||||
|
registerColumnType( Types.LONGVARCHAR, "varchar(MAX)" );
|
||||||
registerColumnType( Types.VARCHAR, "varchar(MAX)" );
|
registerColumnType( Types.VARCHAR, "varchar(MAX)" );
|
||||||
registerColumnType( Types.VARCHAR, MAX_LENGTH, "varchar($l)" );
|
registerColumnType( Types.VARCHAR, MAX_LENGTH, "varchar($l)" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue