From: Oliver Jowett <oliver@opencloud.com>
To: David Gagnon <dgagnon@siunik.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: upgrade problem with driver postgresql-8.1-407.jdbc3.jar
Date: Thu, 07 Sep 2006 08:32:03 +1200
Message-ID: <44FF3043.3030901@opencloud.com> (raw)
In-Reply-To: <44FF3005.6080101@siunik.com>
References: <44FED47A.3010008@siunik.com>
<44FF2BE2.2020708@opencloud.com>
<44FF3005.6080101@siunik.com>
David Gagnon wrote:
> Is that a bug then since this way working with the 7.4 jdbc driver ?
It's not really a bug, it's that the driver is now more picky about
where parameters may be placed in the query. You were never really meant
to put parameters just anywhere in a query, it just happened to work in
the past.
> Any idea why it stops working ?
The older driver you used did literal substitution of parameter values
into the query.
Newer drivers turn ? placeholders into $n placeholders and pass the
actual parameter values separately to the query string. So they only
allow ? placeholders where a $n placeholder is accepted by the server.
-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, dgagnon@siunik.com
Subject: Re: upgrade problem with driver postgresql-8.1-407.jdbc3.jar
In-Reply-To: <44FF3043.3030901@opencloud.com>
References: <44FED47A.3010008@siunik.com> <44FF2BE2.2020708@opencloud.com> <44FF3005.6080101@siunik.com> <44FF3043.3030901@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