Re: Problem with boolean type - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Problem with boolean type
Date
Msg-id 4165A2CF.6050305@opencloud.com
Whole thread Raw
In response to Problem with boolean type  ("Johann Robette" <jrobette@onyme.com>)
List pgsql-jdbc
Johann Robette wrote:

> I'm using Postgres 8.0 beta 3 and the appropriate JDBC Driver.

What is the "appropriate JDBC driver"?

> I use EJB to create a record in a table containing a Boolean field
> "answered".
> The EJB method expects a Boolean object so I pass new Boolean(false) in
> order to create it as false.
>
> But I get the following error :
> java.sql.SQLException: ERROR: column "answered" is of type boolean but
> expression is of type text

Do you have access to the code that is calling the JDBC driver? Can you
show us that code?

-O

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Translation updates: errors_ru.properties
Next
From: Oliver Jowett
Date:
Subject: Re: Translation updates: errors_ru.properties