HHH-7933 boolean should be treated as bit in SQLServer
This commit is contained in:
parent
f8e07a40ec
commit
0ddd884400
|
@ -64,7 +64,6 @@ public class SQLServer2005Dialect extends SQLServerDialect {
|
||||||
|
|
||||||
registerColumnType( Types.BIGINT, "bigint" );
|
registerColumnType( Types.BIGINT, "bigint" );
|
||||||
registerColumnType( Types.BIT, "bit" );
|
registerColumnType( Types.BIT, "bit" );
|
||||||
registerColumnType( Types.BOOLEAN, "bit" );
|
|
||||||
|
|
||||||
|
|
||||||
registerFunction( "row_number", new NoArgSQLFunction( "row_number", StandardBasicTypes.INTEGER, true ) );
|
registerFunction( "row_number", new NoArgSQLFunction( "row_number", StandardBasicTypes.INTEGER, true ) );
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class SQLServerDialect extends AbstractTransactSQLDialect {
|
||||||
registerColumnType( Types.VARBINARY, 8000, "varbinary($l)" );
|
registerColumnType( Types.VARBINARY, 8000, "varbinary($l)" );
|
||||||
registerColumnType( Types.LONGVARBINARY, "image" );
|
registerColumnType( Types.LONGVARBINARY, "image" );
|
||||||
registerColumnType( Types.LONGVARCHAR, "text" );
|
registerColumnType( Types.LONGVARCHAR, "text" );
|
||||||
|
registerColumnType( Types.BOOLEAN, "bit" );
|
||||||
|
|
||||||
registerFunction( "second", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(second, ?1)" ) );
|
registerFunction( "second", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(second, ?1)" ) );
|
||||||
registerFunction( "minute", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(minute, ?1)" ) );
|
registerFunction( "minute", new SQLFunctionTemplate( StandardBasicTypes.INTEGER, "datepart(minute, ?1)" ) );
|
||||||
|
|
Loading…
Reference in New Issue