]> granicus.if.org Git - postgresql/commitdiff
Work around for perl 5.10 bug - fix due to perl hacker Simon Cozens.
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 22 Jan 2008 20:17:37 +0000 (20:17 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 22 Jan 2008 20:17:37 +0000 (20:17 +0000)
src/pl/plperl/plperl.c

index 70d90b63ff49d5d81588d3196177077761132c06..4ac957d1caaffc29163ecd581fa6168bdac9a1ba 100644 (file)
@@ -1,7 +1,7 @@
 /**********************************************************************
  * plperl.c - perl as a procedural language for PostgreSQL
  *
- *       $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.134 2007/12/01 17:58:42 tgl Exp $
+ *       $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.135 2008/01/22 20:17:37 adunstan Exp $
  *
  **********************************************************************/
 
@@ -272,8 +272,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; }"