From: Xavier Poinsard <xpoinsard@free.fr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: postgresql-8.0.jar and failure of ORDER BY parameters
Date: Wed, 04 May 2005 16:42:17 +0200
Message-ID: <4278DF49.3050006@free.fr> (raw)
In-Reply-To: <87ekcn9i85.fsf@meuh.mnc.ch>
References: <874qdjpfe5.fsf@meuh.mnc.ch>
<17996.1115216059@sss.pgh.pa.us>
<87ekcn9i85.fsf@meuh.mnc.ch>
Guillaume Cottenceau wrote:
> Is there any way to give parameters to ORDER BY in a
> preparedStatement then?
This seems impossible since the aim of the preparedStatement is the
caching of the execution plan which is affected by the ORDER BY clause.
The same reason applies for table name or columns names.
The parameters should be real parameters, not part of the query structure.
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: xpoinsard@free.fr
Subject: Re: postgresql-8.0.jar and failure of ORDER BY parameters
In-Reply-To: <4278DF49.3050006@free.fr>
References: <874qdjpfe5.fsf@meuh.mnc.ch> <17996.1115216059@sss.pgh.pa.us> <87ekcn9i85.fsf@meuh.mnc.ch> <4278DF49.3050006@free.fr>
* 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