From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: PreparedStatement & direct execution methods
Date: Sun, 23 May 2004 11:59:07 +1200
Message-ID: <40AFE94B.7060904@opencloud.com> (raw)
Just noticed this in the JDBC spec (13.2.4):
If any of the PreparedStatement execute methods is called with an SQL
string as a parameter, an SQLException is thrown.
(don't you love how you have to look at both the spec and the javadoc to
discover the behaviour of particular methods?)
The current driver doesn't do this, and we've had at least one bug
report that turned out to be caused by calling an execute...() method
with a string on a PreparedStatement.
Worth fixing?
-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
Subject: Re: PreparedStatement & direct execution methods
In-Reply-To: <40AFE94B.7060904@opencloud.com>
References: <40AFE94B.7060904@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