From: Mario Splivalo <mario.splivalo@mobart.hr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: RETURNS SETOF primitive returns results in parentheses
Date: Wed, 26 Oct 2005 21:57:54 +0200
Message-ID: <1130356674.18653.3.camel@localhost.localdomain> (raw)
In-Reply-To: <10931.1130355933@sss.pgh.pa.us>
References: <1130330322.7400.45.camel@ekim>
<5954.1130337622@sss.pgh.pa.us>
<1130355699.18653.0.camel@localhost.localdomain>
<10931.1130355933@sss.pgh.pa.us>
On Wed, 2005-10-26 at 15:45 -0400, Tom Lane wrote:
> Mario Splivalo <mario.splivalo@mobart.hr> writes:
> > Wo-ha, makes perfect sense. So, I'd go by with declaring the rec as
> > varchar, instead as of a record. Wich is what I should do in the first
> > place.
>
> Or just return the correct field out of it.
>
> RETURN NEXT returnValue.fieldname;
>
> I think you may have to do it this way because the FOR loop wants a
> record variable.
Yes, you're right. Funny implementation of the FOR loop :)
Mike
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: mario.splivalo@mobart.hr, tgl@sss.pgh.pa.us
Subject: Re: RETURNS SETOF primitive returns results in parentheses
In-Reply-To: <1130356674.18653.3.camel@localhost.localdomain>
* 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