Re: Support for named parameters in the PostgreSQL JDBC driver

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Support for named parameters in the PostgreSQL JDBC driver
Дата
Msg-id Pine.BSO.4.64.0611161249120.23576@leary2.csoft.net
обсуждение исходный текст
Ответ на Support for named parameters in the PostgreSQL JDBC driver  (Ravi Periasamy <rperiasamy@aol.com>)
Ответы Re: Support for named parameters in the PostgreSQL JDBC driver  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc

On Thu, 16 Nov 2006, Ravi Periasamy wrote:

> Dear PGSQL-JDBC Team,
>
> Could you please let me know if the support for "Named Parameters" in the
> JDBC driver is slated for some future release?
>

Just recently I noticed an overlooked patch that implements this:
http://archives.postgresql.org/pgsql-jdbc/2006-07/msg00011.php

The suggested patch isn't quite right, but its approach can work in many
cases.  If functions are not overloaded then a simple lookup of parameter
names by the function name would work.  If the function is overloaded we
might be able to use the parameter type given by setXXX to try and
determine what function we're actually calling, but it's probably better
to just error out in that case.

Kris Jurka

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Support for named parameters in the PostgreSQL JDBC driver
Следующее
От: Mikko Tiihonen
Дата:
Сообщение: ResultSet.getBytes() of bytea speedup batch