From: Oliver Jowett <oliver@opencloud.com>
To: j.random.programmer <javadesigner@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: 8.2dev-500.jdbc3 driver: PreparedStatement.toString()
Date: Mon, 19 Dec 2005 23:28:48 +0000
Message-ID: <43A74230.8030706@opencloud.com> (raw)
In-Reply-To: <20051219185723.47640.qmail@web32010.mail.mud.yahoo.com>
References: <20051219185723.47640.qmail@web32010.mail.mud.yahoo.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, javadesigner@yahoo.com
Subject: Re: 8.2dev-500.jdbc3 driver: PreparedStatement.toString()
In-Reply-To: <43A74230.8030706@opencloud.com>
References: <20051219185723.47640.qmail@web32010.mail.mud.yahoo.com> <43A74230.8030706@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox