X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4799532A180; Thu, 7 Oct 2004 15:48:01 +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 85505-07; Thu, 7 Oct 2004 14:47:45 +0000 (GMT) Received: from dns.cegetel-passerelle.com (dns.cegetel-passerelle.com [213.223.187.134]) by svr1.postgresql.org (Postfix) with ESMTP id 0E77E329DBF; Thu, 7 Oct 2004 15:47:48 +0100 (BST) Received: from escmail.esc-lille.fr (unknown [213.223.237.160]) by dns.cegetel-passerelle.com (Postfix) with ESMTP id 629D326059; Thu, 7 Oct 2004 16:47:47 +0200 (CEST) Received: from srvmail.esc-lille.fr (srvmail.esc-lille.fr [10.1.10.5]) by escmail.esc-lille.fr (Postfix) with ESMTP id 49E1467C134; Thu, 7 Oct 2004 16:46:54 +0200 (CEST) Received: from Johann ([10.10.1.165]) by srvmail.esc-lille.fr with Microsoft SMTPSVC(5.0.2195.6713); Thu, 7 Oct 2004 16:47:46 +0200 From: "Johann Robette" To: Cc: "'PostGreSQL JDBC'" Subject: Problem with boolean type Date: Thu, 7 Oct 2004 16:47:45 +0200 Message-ID: <002401c4ac7c$9e6c33f0$a5010a0a@Johann> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20041007104603.78af41f3@kingfisher.intern.logi-track.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: High X-OriginalArrivalTime: 07 Oct 2004 14:47:46.0237 (UTC) FILETIME=[9BC2BED0:01C4AC7C] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=X_MSMAIL_PRIORITY_HIGH, X_PRIORITY_HIGH X-Spam-Level: * X-Archive-Number: 200410/270 X-Sequence-Number: 66794 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