HHH-7933 boolean should be treated as bit in SQLServer

This commit is contained in:
Himavanth 2013-01-24 13:23:21 +05:30 committed by Brett Meyer
parent 80128705fb
commit d492b303ce
2 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,6 @@ public class SQLServer2005Dialect extends SQLServerDialect {
registerColumnType( Types.BIGINT, "bigint" );
registerColumnType( Types.BIT, "bit" );
registerColumnType( Types.BOOLEAN, "bit" );
registerFunction( "row_number", new NoArgSQLFunction( "row_number", StandardBasicTypes.INTEGER, true ) );

View File

@ -47,6 +47,7 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
registerColumnType( Types.VARBINARY, 8000, "varbinary($l)" );
registerColumnType( Types.LONGVARBINARY, "image" );
registerColumnType( Types.LONGVARCHAR, "text" );
registerColumnType( Types.BOOLEAN, "bit" );
registerFunction( "second", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(second, ?1)" ) );
registerFunction( "minute", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(minute, ?1)" ) );