From: Marc McIntyre <mmcintyre@squiz.net>
To: Jim C. Nasby <jim@nasby.net>
Cc: Jean-Christophe Roux <jcxxr@yahoo.com>
Cc: pgsql-php@postgresql.org
Subject: Re: plpgsql returning array
Date: Thu, 19 Oct 2006 21:37:06 +1000
Message-ID: <45376362.40804@squiz.net> (raw)
In-Reply-To: <20061018224453.GF56874@nasby.net>
References: <20061014202841.17630.qmail@web35304.mail.mud.yahoo.com>
<4531D112.90301@squiz.net>
<20061018224453.GF56874@nasby.net>
Jim C. Nasby wrote:
> Isn't there a way to return an array? SRFs are great, but not always the
> best tool.
>
>
There's no way to nicely map an array from a plpgsql SF to a php array.
(Ie. the driver won't do that for you, AFAIK)
I find that array returning functions are useful when calling from other
functions, and set returning functions
are great when you wish to get a result set back to php.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: mmcintyre@squiz.net, jim@nasby.net, jcxxr@yahoo.com
Subject: Re: plpgsql returning array
In-Reply-To: <45376362.40804@squiz.net>
References: <20061014202841.17630.qmail@web35304.mail.mud.yahoo.com> <4531D112.90301@squiz.net> <20061018224453.GF56874@nasby.net> <45376362.40804@squiz.net>
* 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