Fix typo in PL/Perl Safe.pm initialization that prevented the proper
sharing of %_SHARED. From Andrew Dunstan.
This commit is contained in:
parent
1b41965d5d
commit
353f111f98
@ -33,7 +33,7 @@
|
|||||||
* ENHANCEMENTS, OR MODIFICATIONS.
|
* ENHANCEMENTS, OR MODIFICATIONS.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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_only(':default');"
|
||||||
"$PLContainer->permit(qw[:base_math !:base_io sort time]);"
|
"$PLContainer->permit(qw[:base_math !:base_io sort time]);"
|
||||||
"$PLContainer->share(qw[&elog &spi_exec_query &DEBUG &LOG "
|
"$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]}]); }"
|
"sub ::mksafefunc { return $PLContainer->reval(qq[sub { $_[0] $_[1]}]); }"
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user