Attached.
Tom Lane ([EMAIL PROTECTED]) wrote:
> Travis Bauer <[EMAIL PROTECTED]> writes:
> > 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().
>
> This seems like a reasonable change, but could we trouble you to
> submit it in diff -c format? Without the context it's way too
> error-prone to apply.
>
> regards, tom lane
--
----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------
*** src/pl/plperl Thu Jan 18 13:00:28 2001
--- plperl.c Thu Jan 18 15:58:48 2001
***************
*** 224,230 ****
/* no commas between the next 4 please. They are supposed to be one
string
*/
"require Safe; SPI::bootstrap();"
! "sub ::mksafefunc { my $x = new Safe; $x->permit_only(':default');"
"$x->share(qw[&elog &DEBUG &NOTICE &NOIND &ERROR]);"
" return $x->reval(qq[sub { $_[0] }]); }"
};
--- 224,230 ----
/* no commas between the next 4 please. They are supposed to be one
string
*/
"require Safe; SPI::bootstrap();"
! "sub ::mksafefunc { my $x = new Safe;
$x->permit_only(':default');$x->permit(':base_math');"
"$x->share(qw[&elog &DEBUG &NOTICE &NOIND &ERROR]);"
" return $x->reval(qq[sub { $_[0] }]); }"
};