Re: postgresql-8.0.jar and failure of ORDER BY parameters

Поиск
Список
Период
Сортировка
От Xavier Poinsard
Тема Re: postgresql-8.0.jar and failure of ORDER BY parameters
Дата
Msg-id 4278DF49.3050006@free.fr
обсуждение исходный текст
Ответ на Re: postgresql-8.0.jar and failure of ORDER BY parameters  (Guillaume Cottenceau <gc@mnc.ch>)
Список pgsql-jdbc
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.



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

Предыдущее
От: Guillaume Cottenceau
Дата:
Сообщение: Re: postgresql-8.0.jar and failure of ORDER BY parameters
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postgresql-8.0.jar and failure of ORDER BY parameters