HHH-8435 @Lob/@Nationalized results in NCLOB in MSSQL2005 rather than NVARCHAR(MAX)

HHH-8435 @Lob/@Nationalized results in NCLOB in MSSQL2005 rather than
NVARCHAR(MAX)
This commit is contained in:
cranforc 2015-10-28 15:01:21 -05:00 committed by Steve Ebersole
parent 6ace838d61
commit c65cb7e850
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ public class SQLServer2005Dialect extends SQLServerDialect {
registerColumnType( Types.BIGINT, "bigint" );
registerColumnType( Types.BIT, "bit" );
// HHH-8435 fix
registerColumnType( Types.NCLOB, "nvarchar(MAX)" );
registerFunction( "row_number", new NoArgSQLFunction( "row_number", StandardBasicTypes.INTEGER, true ) );
}