Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt" <matt(at)lindenelevator(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>
Subject: Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion
Date: 2007-06-28 16:34:03
Message-ID: 13918.1183048443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Matt" <matt(at)lindenelevator(dot)com> 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 part. It looks to me like the SvOK test
is essential --- in fact I'm not sure the SvTYPE test is even bringing
anything to the party. Any perl-extension gurus around here?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-06-28 16:46:24 Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion
Previous Message Gregory Stark 2007-06-28 12:48:40 Re: BUG #3417: Foreign key constraint violation occurs unexpectedly