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@xxxxxxxxx> 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.
Attachment:
pgpdNfgIq3mdL.pgp
Description: PGP signature