X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BF4B3329C82 for ; Thu, 7 Oct 2004 21:11:09 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97438-02 for ; Thu, 7 Oct 2004 20:11:06 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 2D80C32A2A2 for ; Thu, 7 Oct 2004 21:11:06 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CFebM-0005mX-00; Fri, 08 Oct 2004 09:11:00 +1300 Message-ID: <4165A2CF.6050305@opencloud.com> Date: Fri, 08 Oct 2004 09:10:55 +1300 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Johann Robette Cc: 'PostGreSQL JDBC' Subject: Re: Problem with boolean type References: <002401c4ac7c$9e6c33f0$a5010a0a@Johann> In-Reply-To: <002401c4ac7c$9e6c33f0$a5010a0a@Johann> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/51 X-Sequence-Number: 11156 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