mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens.
This commit is contained in:
parent
5cbb5f31e1
commit
95ad82793d
@ -1,7 +1,7 @@
|
||||
/**********************************************************************
|
||||
* plperl.c - perl as a procedural language for PostgreSQL
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.123.2.3 2007/12/01 17:58:48 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.123.2.4 2008/01/22 20:19:53 adunstan Exp $
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
@ -271,8 +271,8 @@ _PG_init(void)
|
||||
"sub ::mksafefunc {" \
|
||||
" my $ret = $PLContainer->reval(qq[sub { $_[0] $_[1] }]); " \
|
||||
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }" \
|
||||
"$PLContainer->permit('require'); $PLContainer->reval('use strict;');" \
|
||||
"$PLContainer->deny('require');" \
|
||||
"$PLContainer->permit(qw[require caller]); $PLContainer->reval('use strict;');" \
|
||||
"$PLContainer->deny(qw[require caller]); " \
|
||||
"sub ::mk_strict_safefunc {" \
|
||||
" my $ret = $PLContainer->reval(qq[sub { BEGIN { strict->import(); } $_[0] $_[1] }]); " \
|
||||
" $@ =~ s/\\(eval \\d+\\) //g if $@; return $ret; }"
|
||||
|
Loading…
x
Reference in New Issue
Block a user