[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2453) Inserting BIT to PostgreSQL table

Imran M Yousuf (JIRA) noreply at atlassian.com
Tue Feb 27 00:49:31 EST 2007


Inserting BIT to PostgreSQL table
---------------------------------

         Key: HHH-2453
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2453
     Project: Hibernate3
        Type: Bug

  Components: query-sql  
 Environment: Not sure about the hibernate version but will add it soon, downloaded last June. PostrgreSQL 8.2.3 on RedHat Fedora Core 1. Spring Framework.
    Reporter: Imran M Yousuf
 Attachments: CallUser.hbm.xml, hibernate_pgsql.properties

I created a Table which has a column active as Boolean in the entity and the HBM file specifies the type as boolean. When I use this configuration with MySQL it works fine, but when I use it with PostgreSQL I get an javax.sql.BatchUpdateException. so later I changed the HBM file 'active' column type to 'yes_no' and than it works fine. So I confirmed that the problem is due to the BIT(1) column.
So I next tried to manually insert into the column and it PgSQL tells that 1 needs to be casted. Please let me know if I can help in other ways, I will be most grateful to help.

Thank you,

Imran

-- 
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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list