Re: return setof record - strange behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: return setof record - strange behavior
Дата
Msg-id 4069.1217858360@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: return setof record - strange behavior  ("Pawel Socha" <pawel.socha@gmail.com>)
Список pgsql-sql
"Pawel Socha" <pawel.socha@gmail.com> writes:
> 2008/8/4 Marcin Krawczyk <jankes.mk@gmail.com>
>> Hi everybody. Can anyone enlighten me what's wrong with this function :

> [ you didn't do "RETURN next w;" ]

IIRC the other way is to assign to the output parameters by name, then
do RETURN NEXT with no argument.  But the FOR-loop all by itself isn't
going to return any data to the function's caller.
        regards, tom lane


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

Предыдущее
От: "Mike Gould"
Дата:
Сообщение: Case Insensitive searches
Следующее
От: "Richard Broersma"
Дата:
Сообщение: Re: Case Insensitive searches