Fix typo in PL/Perl Safe.pm initialization that prevented the proper
authorNeil Conway <[email protected]>
Mon, 23 May 2005 01:57:51 +0000 (01:57 +0000)
committerNeil Conway <[email protected]>
Mon, 23 May 2005 01:57:51 +0000 (01:57 +0000)
sharing of %_SHARED. From Andrew Dunstan.

src/pl/plperl/plperl.c

index 03a54bd17928faaa23ea42966a242bb9178c8bdb..cfbee1f2839b1c48f2fadf79111c06592b487477 100644 (file)
@@ -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]}]); }"
               ;