Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0F0Ddp89119 for ; Sun, 14 Jan 2001 19:13:39 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0BHnNp27184 for ; Thu, 11 Jan 2001 12:49:23 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id MAA23203 for pgsql-interfaces@postgresql.org; Thu, 11 Jan 2001 12:49:21 -0500 (EST) Received: from snipe.prod.itd.earthlink.net (snipe.prod.itd.earthlink.net [207.217.120.62]) by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id UAA06770 for ; Wed, 10 Jan 2001 20:11:57 -0500 (EST) Received: from ian (PPPa87-ResaleIrving1-1R7217.dialinx.net [4.54.178.116]) by snipe.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with SMTP id RAA07455 for ; Wed, 10 Jan 2001 17:11:53 -0800 (PST) Reply-To: From: "Ian deSouza" To: Subject: BIT type still not working Date: Wed, 10 Jan 2001 19:11:20 -0600 Message-ID: <000201c07b6b$6d56dc20$65646464@ian> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200101/134 X-Sequence-Number: 744 Is this true. If so, is there anytime schedule for a fix? Thanks, Ian Dan, I really think there is something wrong with the boolean (bit) type setting within the PostgreSQL JDBC driver. After checking w/ news groups and receiving one answer below, I think the only way I can accomplish what I need to is to go to postresql itself. Do you have any ideas? Hi Joe, I appreciate your response. I put in a workaround if I'm dealing with postgresql like the following: if (value instanceof Boolean && getType().equals(PersistentStore.PostgreSQL)) { Trace.println("Setting Boolean value for "+objAttr.getName()+"="+value); preparedStatement.setBoolean(i, ((Boolean)value).booleanValue()); } else { preparedStatement.setObject(i, value); } and saw the output: .. SQL: insert into Car (License,Color,Logo,Sunroof) values (?,?,?,?) Setting Boolean value for Sunroof=false .. with exactly the same problem, so calling setBoolean didn't work either. Do you have any suggestions on how to get in touch with the appropriate PostgreSQL people? Thanks, Ian -----Original Message----- From: Joe Weinstein [mailto:joe@bea.com] Sent: Monday, January 08, 2001 5:31 PM To: Ian deSouza Subject: Re: org.postgresql.Driver Problem? Ian deSouza wrote: Sorry, the value was equals to true when I get zpbit_in: t is not a valid bitstring and when value is false I get zpbit_in: f is not a valid bitstring . Hi Ian. You shouldn't use setObject() unless you are sending the driver a Driver-understandable java.sql Object. In this case, you should probably just use setBoolean().