pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johann Robette <jrobette@onyme.com>
To: pgsql-general@postgresql.org
Cc: 'PostGreSQL JDBC' <pgsql-jdbc@postgresql.org>
Subject: Problem with boolean type
Date: Thu, 7 Oct 2004 16:47:45 +0200
Message-ID: <002401c4ac7c$9e6c33f0$a5010a0a@Johann> (raw)
In-Reply-To: <20041007104603.78af41f3@kingfisher.intern.logi-track.com>

Hi,

I'm using Postgres 8.0 beta 3 and 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


Any help will be greatly appreciated.

JR





view thread (3+ messages)  latest in thread

Message-ID: <002401c4ac7c$9e6c33f0$a5010a0a@Johann>
Permalink:  ../002401c4ac7c$9e6c33f0$a5010a0a@Johann/
Also on:    postgresql.org/message-id/002401c4ac7c$9e6c33f0$a5010a0a@Johann

 · 

reply

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: jrobette@onyme.com, pgsql-general@postgresql.org
  Subject: Re: Problem with boolean type
  In-Reply-To: <002401c4ac7c$9e6c33f0$a5010a0a@Johann>
  References: <20041007104603.78af41f3@kingfisher.intern.logi-track.com> <002401c4ac7c$9e6c33f0$a5010a0a@Johann>

* 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