X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 16AF79DC9D5 for ; Mon, 19 Dec 2005 19:36:09 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09737-05 for ; Mon, 19 Dec 2005 19:36:11 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web32002.mail.mud.yahoo.com (web32002.mail.mud.yahoo.com [68.142.207.99]) by postgresql.org (Postfix) with SMTP id 607B89DC9DF for ; Mon, 19 Dec 2005 19:36:06 -0400 (AST) Received: (qmail 15137 invoked by uid 60001); 19 Dec 2005 23:36:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=D+Nak++Zlf3n9G5yQU10bhTzyU63wAtzXsPOnWMh70IozAw81Kde4mODAL/n0+tIfPzOJfb76rjvJ+StAqw2Ahm1fUtVM6HkBu2/1DpFMVfbiKqmIqOHFL/pCy+xlkcKwdS5EVqBCDbWtOlo3oEHLiOX8ZorVAYrbhihMnrBMJ8= ; Message-ID: <20051219233608.15135.qmail@web32002.mail.mud.yahoo.com> Received: from [165.123.243.168] by web32002.mail.mud.yahoo.com via HTTP; Mon, 19 Dec 2005 15:36:08 PST Date: Mon, 19 Dec 2005 15:36:08 -0800 (PST) From: "j.random.programmer" Subject: Re: 8.2dev-500.jdbc3 driver: PreparedStatement.toString() is buggy To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <43A74230.8030706@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.439 required=5 tests=[AWL=-0.040, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.439 X-Spam-Level: X-Archive-Number: 200512/87 X-Sequence-Number: 14418 Oliver: > I don't think the driver or the spec has ever > claimed that toString() > gives you a valid SQL statement. True :-) However, note that it *used* to do so. This is a regression from the past driver. And it would be nice to have anyway, won't it ? Also note in the past, booleans would get converted to '1' and stored in BIT columns. With the latest driver, java booleans are sent as the number 1 (no quotes) and thus cannot be stored in a BIT column, in direct contradiction to the JDBC spec. (that's a different issue, see my other post but I have a feeling it may somehow be related). Best regards, --j __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com