From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Alex <alex(at)meerkatsoft(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Help with plperl |
Date: | 2005-08-21 20:18:16 |
Message-ID: | 20050821201812.GA7724@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Aug 22, 2005 at 03:58:25AM +1000, Alex wrote:
> Hi,
> could anyone help me with a problem I am having creating a plperl function.
>
> The return always complains with the following error:
> composite-returning Perl function must return reference to hash
Well, since you're returning a reference to an array, I imagine it's
complaining about that.
Looking at your function though, it appears to be building a set of
"sometype" rather than a single one. Perhaps you meant your function to
be defined as: RETURNS SETOF sometype.
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Clodoaldo Pinto | 2005-08-21 20:32:01 | Re: extract (dow/week from date) |
Previous Message | Alex | 2005-08-21 17:58:25 | Help with plperl |