From: Oliver Jowett <oliver@opencloud.com>
To: Justin Waddell <jwaddell@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Cannot use prepared statements with create user command
Date: Wed, 23 Aug 2006 18:31:50 +1200
Message-ID: <44EBF656.2000000@opencloud.com> (raw)
In-Reply-To: <925094a20608222109s438a5b41g2886f41e9ddf7417@mail.gmail.com>
References: <925094a20608222109s438a5b41g2886f41e9ddf7417@mail.gmail.com>
Justin Waddell wrote:
>> From my research into this problem it seems like prepared statements
> have been deliberately left out of the create user command as they use
> a different type of parameter; this would be fine if the security hole
> wasn't there!
The JDBC driver can only put parameters in where the server-side grammar
allows it (it does not interpolate parameter values into the actual
query, it puts $1,$2,... placeholders in place of the ? placeholders and
passes the actual parameter values out-of-line from the query itself).
If you want to change the grammar, you need to take this up with the
backend developers.. the JDBC driver can't do anything about it.
-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, jwaddell@gmail.com
Subject: Re: Cannot use prepared statements with create user command
In-Reply-To: <44EBF656.2000000@opencloud.com>
References: <925094a20608222109s438a5b41g2886f41e9ddf7417@mail.gmail.com> <44EBF656.2000000@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