From: oliverp21@free.fr
To: pgsql-sql@postgresql.org
Subject: Problem with returning setof record
Date: Tue, 7 Sep 2004 19:13:14 +0200
Message-ID: <1094577194.413dec2a05bc4@imp1-q.free.fr> (raw)
Hello,
Here is a simple function I created for a test.
create function ttt() returns setof record as '
declare
r record;
begin
for r in select * from utilisateurs.menus loop
return next r;
end loop;
return;
end;
' language 'plpgsql';
When I try to use it, it returns to me :
select ttt();
set-valued function called in context that cannot accept a set
: PL/pgSQL function "ttt" line 5 at return next
Anyone has an idea ?
Best regards,
Patrice OLIVER
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: oliverp21@free.fr
Subject: Re: Problem with returning setof record
In-Reply-To: <1094577194.413dec2a05bc4@imp1-q.free.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox