Re: return setof record - strange behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Pawel Socha" <pawel(dot)socha(at)gmail(dot)com>
Cc: "Marcin Krawczyk" <jankes(dot)mk(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: return setof record - strange behavior
Date: 2008-08-04 13:59:20
Message-ID: 4069.1217858360@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Pawel Socha" <pawel(dot)socha(at)gmail(dot)com> writes:
> 2008/8/4 Marcin Krawczyk <jankes(dot)mk(at)gmail(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Broersma 2008-08-04 14:05:25 Re: Case Insensitive searches
Previous Message Mike Gould 2008-08-04 13:54:38 Case Insensitive searches