Skip site navigation (1) Skip section navigation (2)

Workaround to get arrays for plperl

From: <Eugen(dot)Konkov(at)aldec(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Workaround to get arrays for plperl
Date: 2008-03-30 13:23:07
Message-ID: 045401c89269$31f6fa30$1200a8c0@kharkov.localhost (view raw, whole thread or download thread mbox)
Lists: 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 )= @_;
$strarr =~ s/{/[/g;
$strarr =~ s/}/]/g;
my $arr= eval $strarr;

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


pgsql-bugs by date

Next:From: CaTDate: 2008-03-30 13:27:19
Subject: Re: Workaround to get arrays for plperl
Previous:From: Eduard Fernandez-DiazDate: 2008-03-30 12:52:05
Subject: BUG #4069: Wrong tip

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group