Re: Calling a stored procedure with a custom return type

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Calling a stored procedure with a custom return type
Дата
Msg-id Pine.BSO.4.64.0710251846520.15547@leary.csoft.net
обсуждение исходный текст
Ответ на Calling a stored procedure with a custom return type  ("Brad Larson" <bklarson+postgres@gmail.com>)
Список pgsql-jdbc

On Thu, 25 Oct 2007, Brad Larson wrote:

> I'm sorry if this is already documented elsewhere; I've googled around
> and searched the jdbc source without any luck.  I have a stored
> procedure (PL/pgSQL) which uses a custom return type of the form:
>
> How can I call this from JDBC?  I can call it with a
>
> prepareStatement("select login( ?, ?, ?, ? )");
>
> but then the results are all returned as 1 string, of the form "(int,
> string, t, t)", which of course isn't ideal.  I also tried


SELECT * FROM login(?,?,?,?);

Kris Jurka

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Potential inconsistency in handling of timestamps
Следующее
От: Guy Rouillier
Дата:
Сообщение: Re: multiple connections to db over jsp