Re: receiving user defined types from a function?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: receiving user defined types from a function?
Дата
Msg-id Pine.BSO.4.56.0403261629490.3597@leary.csoft.net
обсуждение исходный текст
Ответ на receiving user defined types from a function?  (Dario Bahena <darbahena@santander.com.mx>)
Список pgsql-interfaces

On Tue, 23 Mar 2004, Dario Bahena wrote:

> hi ...
> 
> I've a postgresql function, that returns a user defined composite type, 
> is it posible to catch it using the jdbc driver???, cause then I tried 
> it and saw the class for the object, it gave me just the first member 
> for my composite type.
> 

Instead of using a CallableStatement to call a function returning a
complex type the recommended method is to use a regular Statement or
PreparedStatement and simply call the function in a select such as:

SELECT * FROM mycomplexfunction('a',12);

Kris Jurka


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: PostgreSQL-Perl Interface installation
Следующее
От: "Preston A. Elder"
Дата:
Сообщение: Re: Portable interfaces ...