Boolean type - Mailing list pgsql-jdbc

From Nortje, Jacques
Subject Boolean type
Date
Msg-id FCB914ECE16DD4119A010800062793AD039AED63@sietel.siemens.co.za
Whole thread Raw
Responses Re: Boolean type
List pgsql-jdbc

I use the Java EJB2.0 standards for creating entitiy beans which are
persisted to a PostGreSQL database.  I create an entity
bean with a boolean attribute with value 'true'.  In the database the record
is inserted and the field value is set to 1. When I retrieve the entity bean
attributes with a findByPrimaryKey() finder method, the getAttribute()
result is 'false' for the inserted 'true' value.  Is this a type
mapping/conversion setting that needs to be set for the application server
(JBoss 3.0-alpha) or does it have to do with the JDBC driver I am using
( I use the driver that came with the Cygwin package, ie postgresql.jar)?

Thanks and regards.

Jacques Nortjé


pgsql-jdbc by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Status of outstanding patches
Next
From:
Date:
Subject: Problem to connect from host via JDBC ...