Workaround to get arrays for plperl - Mailing list pgsql-bugs

From
Subject Workaround to get arrays for plperl
Date
Msg-id 045401c89269$31f6fa30$1200a8c0@kharkov.localhost
Whole thread Raw
Responses Re: Workaround to get arrays for plperl
List pgsql-bugs
It seems that function get arrays as strings in plperl.
This is a little workaround who want pass arrays to plperl functions

my( $strarr )=3D @_;
$strarr =3D~ s/{/[/g;
$strarr =3D~ s/}/]/g;
my $arr=3D eval $strarr;

NOTICE:
you must create you function as plperlu
and add language:
create language plperlu;

pgsql-bugs by date:

Previous
From: Aaron Tuwhangai
Date:
Subject: Re: BUG #3980: Can not Install PostgreSQL - error at the end of installation
Next
From: CaT
Date:
Subject: Re: Workaround to get arrays for plperl