Issue Type: Bug Bug
Affects Versions: 4.1.9, 4.0.1
Assignee: Unassigned
Components: core
Created: 18/Jan/13 3:35 AM
Description:

I am upgrading from 3.5.2 to 4.1.9
I am using SQL Server 2000
I have a boolean data type in one of my tables
My schemaupdate fails with the following error.
[SQLServer JDBC Driver][SQLServer]Column or parameter #9: Cannot find data type boolean.

Upon some investigation, i found that SQL Server does not have a boolean type.
Hibernate 3.5.2 used to hardcode the type of boolean to Types.bit in org.hibernate.type.BooleanType.sqlType().
Hibernate 4.1.9 does not do that.

One related bug i found is
https://hibernate.onjira.com/browse/HHH-6420

The commit for this bug is
https://github.com/hibernate/hibernate-orm/commit/d9680adcba4625f6330be7adfebb6fbcd2fb422d

Now in that commit, i don't understand why the following line
registerColumnType( Types.BOOLEAN, "bit" );
was added in SQLServer2005Dialect.java
instead of SQLServerDialect.java

Environment: Hibernate 4.1.9, SQL Server 2000
Project: Hibernate ORM
Labels: hibernate dialect sqlserver
Priority: Major Major
Reporter: Himavanth Rachamsetty
Original Estimate: 5m
Remaining Estimate: 5m
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira