Re: plpgsql function returning SETOF

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql function returning SETOF
Дата
Msg-id 15046.1135191044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plpgsql function returning SETOF  ("Johannes Brügmann" <johannes@jottbee.org>)
Ответы Re: plpgsql function returning SETOF  ("Johannes Brügmann" <johannes@jottbee.org>)
Список pgsql-novice
"Johannes Br�gmann" <johannes@jottbee.org> writes:
> sorry, i missed the error message:

>       bruegmann@traffic_nrw=# select feiertage(NULL);
>       ERROR:  set-valued function called in context that cannot accept a set
>       CONTEXT:  PL/pgSQL function "feiertage" line 30 at return next

You need to do
    select * from your_function(...);
not just
    select your_function(...);

            regards, tom lane

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: plpgsql function returning SETOF
Следующее
От: "Johannes Brügmann"
Дата:
Сообщение: Re: plpgsql function returning SETOF