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: 45376362.40804@squiz.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

Browse pgsql-php by date

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