summaryrefslogtreecommitdiff
path: root/src/pl/plperl/plperl.h
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2011-02-17 22:11:50 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2011-02-17 22:20:40 -0300
commit87bb2ade2ce646083f39d5ab3e3307490211ad04 (patch)
treead32fd5d829a65f06caca164bfc264cbee1e78f0 /src/pl/plperl/plperl.h
parentf7b51d175a02a3b6589f091ca732959618844232 (diff)
Convert Postgres arrays to Perl arrays on PL/perl input arguments
More generally, arrays are turned in Perl array references, and row and composite types are turned into Perl hash references. This is done recursively, in a way that's natural to every Perl programmer. To avoid a backwards compatibility hit, the string representation of each structure is also available if the function requests it. Authors: Alexey Klyukin and Alex Hunsaker. Some code cleanups by me.
Diffstat (limited to 'src/pl/plperl/plperl.h')
-rw-r--r--src/pl/plperl/plperl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl.h b/src/pl/plperl/plperl.h
index 1e0bad101aa..65b27a344f0 100644
--- a/src/pl/plperl/plperl.h
+++ b/src/pl/plperl/plperl.h
@@ -59,6 +59,7 @@ HV *plperl_spi_exec_prepared(char *, HV *, int, SV **);
SV *plperl_spi_query_prepared(char *, int, SV **);
void plperl_spi_freeplan(char *);
void plperl_spi_cursor_close(char *);
+char *plperl_sv_to_literal(SV *, char *);