"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