pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: pgsql-jdbc@postgresql.org
Subject: postgresql-8.0.jar and failure of ORDER BY parameters
Date: 04 May 2005 10:24:50 +0200
Message-ID: <874qdjpfe5.fsf@meuh.mnc.ch> (raw)

Hi,

Trying postgresql-8.0-310.jdbc3.jar and
postgresql-8.0-311.jdbc3.jar with a 7.4.5 server, ORDER BY
parameters in a preparedStatement are not taken in account
anymore (were ok when using 7.4.x JAR driver).

E.g.

        SELECT .... ORDER BY ?, ?

..

	actionSt = conn.prepareStatement( getQuery(),
                                          ResultSet.TYPE_SCROLL_INSENSITIVE,
                                          ResultSet.CONCUR_READ_ONLY );

..

	actionSt.setInt( 1, 4 );
	actionSt.setInt( 2, 5 );


the last part setting ORDER BY parameters, which have no effect
on the resultset we obtain.

Is there something I can do beside changing the version of the
server used?

Thanks.

-- 
Guillaume Cottenceau



view thread (6+ messages)  latest in thread

Message-ID: <874qdjpfe5.fsf@meuh.mnc.ch>
Permalink:  ../874qdjpfe5.fsf@meuh.mnc.ch/
Also on:    postgresql.org/message-id/874qdjpfe5.fsf@meuh.mnc.ch

 · 

reply

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: gc@mnc.ch
  Subject: Re: postgresql-8.0.jar and failure of ORDER BY parameters
  In-Reply-To: <874qdjpfe5.fsf@meuh.mnc.ch>
  References: <874qdjpfe5.fsf@meuh.mnc.ch>

* 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