Fix incorrect tests for undef Perl values in some places in plperl.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jun 2007 17:50:17 +0000 (17:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jun 2007 17:50:17 +0000 (17:50 +0000)
commit143aa7f071e326eaf08a1f311f49e2655cc28ed5
tree755767d7c7c604ac46a5537182d8303f0616edd6
parent82c2e025c1e66343f7164c7f93a54d9c57b8a869
Fix incorrect tests for undef Perl values in some places in plperl.c.
The correct test for defined-ness is SvOK(sv), not anything involving
SvTYPE.  Per bug #3415 from Matt Taylor.
Back-patch as far as 8.0; no apparent problem in 7.x.
src/pl/plperl/plperl.c