Re: [PATCHES] plperl better array support

2005-06-22 Thread Andrew Dunstan
I wrote: The attached patch (submitted for comment) is somewhat adapted from one submitted last October. This allows returning a perl array where a postgres array is expected. example: andrew=# create function blurfl() returns text[] language plperl as $$ andrew$# return ['a','b','c','a"

Re: [PATCHES] plperl better array support

2005-06-20 Thread Andrew Dunstan
David Fetter wrote: In src/backend/utils/adt/arrayfuncs.c there are direct array-manipulation functions. And in other places - I had already found that stuff :-) . But a worked example would help. If it's not available I'll muddle through some time. In the perlapi docs for perl, there

Re: [PATCHES] plperl better array support

2005-06-20 Thread David Fetter
On Mon, Jun 20, 2005 at 05:06:32AM -0400, Andrew Dunstan wrote: > > The attached patch (submitted for comment) is somewhat adapted from one > submitted last October. This allows returning a perl array where a > postgres array is expected. > > example: > > andrew=# create function blurfl() retu

[PATCHES] plperl better array support

2005-06-20 Thread Andrew Dunstan
The attached patch (submitted for comment) is somewhat adapted from one submitted last October. This allows returning a perl array where a postgres array is expected. example: andrew=# create function blurfl() returns text[] language plperl as $$ andrew$# return ['a','b','c','a"b\c']; andrew