Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde266c6

Browse files
committed
> > I have attached a simple change to src/pl/plperl/plperl.c to
> > enable the :bash_math opcodes. Currently plperl.c only> > enables the :default opcodes. This leave out about five of six> > math functions including sqrt().Travis Bauer
1 parentbe28191 commitde266c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* ENHANCEMENTS, OR MODIFICATIONS.
3434
*
3535
* IDENTIFICATION
36-
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.17 2000/12/08 00:11:55 tgl Exp $
36+
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.18 2001/01/19 16:14:36 momjian Exp $
3737
*
3838
**********************************************************************/
3939

@@ -227,7 +227,7 @@ plperl_init_safe_interp(void)
227227
/* no commas between the next 4 please. They are supposed to be one string
228228
*/
229229
"require Safe; SPI::bootstrap();"
230-
"sub ::mksafefunc { my $x = new Safe; $x->permit_only(':default');"
230+
"sub ::mksafefunc { my $x = new Safe; $x->permit_only(':default');$x->permit(':base_math');"
231231
"$x->share(qw[&elog &DEBUG &NOTICE &NOIND &ERROR]);"
232232
" return $x->reval(qq[sub { $_[0] }]); }"
233233
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp