From: Oliver Jowett <oliver@opencloud.com>
To: Johann Robette <jrobette@onyme.com>
Cc: PostGreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Problem with boolean type
Date: Fri, 08 Oct 2004 09:10:55 +1300
Message-ID: <4165A2CF.6050305@opencloud.com> (raw)
In-Reply-To: <002401c4ac7c$9e6c33f0$a5010a0a@Johann>
References: <002401c4ac7c$9e6c33f0$a5010a0a@Johann>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, jrobette@onyme.com
Subject: Re: Problem with boolean type
In-Reply-To: <4165A2CF.6050305@opencloud.com>
References: <002401c4ac7c$9e6c33f0$a5010a0a@Johann> <4165A2CF.6050305@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox