Re: Howto return values from a function

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: Howto return values from a function
Дата
Msg-id 1d581afe0805160113w8df3168qaec01363a4a31fa2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Howto return values from a function  ("A B" <gentosaker@gmail.com>)
Список pgsql-general
2008/5/16 A B <gentosaker@gmail.com>:
>> How you generate the results is up to you. when you have them you
>> either use RETURN NEXT or RETURN QUERY to return them to the caller.
>
> Now I get the reply
>
> ERROR:  set-valued function called in context that cannot accept a set
> CONTEXT:  PL/pgSQL function "actionlist" line 11 at return next

You probably need to do

SELECT * FROM actionlist(123)


Ian Barwick

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

Предыдущее
От: "Vance Maverick"
Дата:
Сообщение: Re: triggers: dynamic references to fields in NEW and OLD?
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Howto return values from a function