From: Neil Conway Date: Mon, 23 May 2005 01:57:51 +0000 (+0000) Subject: Fix typo in PL/Perl Safe.pm initialization that prevented the proper X-Git-Tag: REL8_1_0BETA1~753 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=353f111f980fb6a5969e63f4d7183dadd63118bc;p=thirdparty%2Fpostgresql.git Fix typo in PL/Perl Safe.pm initialization that prevented the proper sharing of %_SHARED. From Andrew Dunstan. --- diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 03a54bd1792..cfbee1f2839 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -33,7 +33,7 @@ * ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.73 2005/05/06 17:24:55 tgl Exp $ + * $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.74 2005/05/23 01:57:51 neilc Exp $ * **********************************************************************/ @@ -226,7 +226,7 @@ plperl_safe_init(void) "$PLContainer->permit_only(':default');" "$PLContainer->permit(qw[:base_math !:base_io sort time]);" "$PLContainer->share(qw[&elog &spi_exec_query &DEBUG &LOG " - "&INFO &NOTICE &WARNING &ERROR %SHARED ]);" + "&INFO &NOTICE &WARNING &ERROR %_SHARED ]);" "sub ::mksafefunc { return $PLContainer->reval(qq[sub { $_[0] $_[1]}]); }" ;