Skip site navigation (1) Skip section navigation (2)

Re: plpgsql returning array

From: Marc McIntyre <mmcintyre(at)squiz(dot)net>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: Jean-Christophe Roux <jcxxr(at)yahoo(dot)com>, pgsql-php(at)postgresql(dot)org
Subject: Re: plpgsql returning array
Date: 2006-10-19 11:37:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
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.

In response to

pgsql-php by date

Next:From: Amal burmanDate: 2006-10-26 18:11:47
Subject: PostgreSQL locking from PHP scripts
Previous:From: Jim C. NasbyDate: 2006-10-18 22:44:53
Subject: Re: plpgsql returning array

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group