Functions returning complex types.

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Functions returning complex types.
Дата
Msg-id bv3g1v$s6h$1@news.hub.org
обсуждение исходный текст
Ответы Re: Functions returning complex types.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I'm trying to use a function that returns a complex type. I have no problem
creating the function but when I try to use it I get the message:

ERROR:  function in FROM has unsupported return type

Apparently, this message stems from the parser. Changing the function so
that it returns a SETOF the same complex type works fine.

Is this the expected behavior? Is SETOF a requirement when using complex
types?

Regards,

- thomas




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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: returning PGresult as xml
Следующее
От: Tom Lane
Дата:
Сообщение: Re: what does it mean