postgresql-8.0.jar and failure of ORDER BY parameters

Поиск
Список
Период
Сортировка
От Guillaume Cottenceau
Тема postgresql-8.0.jar and failure of ORDER BY parameters
Дата
Msg-id 874qdjpfe5.fsf@meuh.mnc.ch
обсуждение исходный текст
Ответы Re: postgresql-8.0.jar and failure of ORDER BY parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: sunil sunsunwal
Дата:
Сообщение: Connectivity of postgreSQL database to a JSP page
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Connectivity of postgreSQL database to a JSP page