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 C7B4F9DC86B for ; Mon, 19 Dec 2005 19:28:44 -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 07295-08 for ; Mon, 19 Dec 2005 19:28:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 829A59DC82E for ; Mon, 19 Dec 2005 19:28:41 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EoUQs-0004NP-Fb; Tue, 20 Dec 2005 12:28:42 +1300 Message-ID: <43A74230.8030706@opencloud.com> Date: Mon, 19 Dec 2005 23:28:48 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "j.random.programmer" CC: pgsql-jdbc@postgresql.org Subject: Re: 8.2dev-500.jdbc3 driver: PreparedStatement.toString() References: <20051219185723.47640.qmail@web32010.mail.mud.yahoo.com> In-Reply-To: <20051219185723.47640.qmail@web32010.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/85 X-Sequence-Number: 14416 j.random.programmer wrote: > There seems to be a bug with the 8.2dev-500 > driver, running against a postgres 8.1 database. > > If I have a PreparedStatement, then when I say: > > System.out.println(ps) > > the the prepared statement that is printed is > *missing* single quotes around data/time AND > character/string values. This means that I > cannot copy that preparedstatment and paste > it directly into a psql session etc. I don't think the driver or the spec has ever claimed that toString() gives you a valid SQL statement. -O