Re: [BUGS] BUG #3415: plperl spi_exec_prepared variable undef value confusion

2007-06-28 Thread Andrew Dunstan
Tom Lane wrote: "Matt" <[EMAIL PROTECTED]> writes: Description:plperl spi_exec_prepared variable undef value confusion [ pokes at it ... ] Some of the places in plperl.c that are checking for undef values use code like if (SvOK(val) && SvTYPE(val) != SVt_NULL) and

Re: [BUGS] BUG #3415: plperl spi_exec_prepared variable undef value confusion

2007-06-28 Thread Tom Lane
I wrote: > [ pokes at it ... ] Some of the places in plperl.c that are checking for > undef values use code like > if (SvOK(val) && SvTYPE(val) != SVt_NULL) > and some just test the SvTYPE part. It looks to me like the SvOK test > is essential --- in fact I'm not sure the SvTYPE test is e

Re: [BUGS] BUG #3415: plperl spi_exec_prepared variable undef value confusion

2007-06-28 Thread Tom Lane
"Matt" <[EMAIL PROTECTED]> writes: > Description:plperl spi_exec_prepared variable undef value confusion [ pokes at it ... ] Some of the places in plperl.c that are checking for undef values use code like if (SvOK(val) && SvTYPE(val) != SVt_NULL) and some just test the SvTYPE pa

[BUGS] BUG #3415: plperl spi_exec_prepared variable undef value confusion

2007-06-26 Thread Matt
The following bug has been logged online: Bug reference: 3415 Logged by: Matt Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.3 Operating system: ubuntu 7.04, gentoo 2007.0 Description:plperl spi_exec_prepared variable undef value confusion Details: When in