[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2144?page=c...
]
Stephen Schwenker commented on HHH-2144:
----------------------------------------
Sorry, I submitted before I was done.
The line that states
registerColumnType( Types.BIT, "bool" );
needs to be changed to
registerColumnType( Types.BOOLEAN, "bool" );
to work properly.
Thank you,
Steve.
bool data type for PostgreSQLDialect get rewritten to numeric 1/0
value instead of "true"/"false"
-------------------------------------------------------------------------------------------------
Key: HHH-2144
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2144
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.cr5
Environment: Hibernate 3.2
PostgreSQL 8.1
Reporter: Stephen Schwenker
First, Here's a link to my form I was using.
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978221
The basice problem is that when hibernate sees HQL for an expression like isSuspended !=
true, it converts the sql to isSuspended<>1 and the sql should be
isSuspended<>true
I found the error in the PostgreSQLDialect that caused the error.
The line that states
registerColumnType( Types.BOOLEAN, "bool" );
needs to be changed to
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira