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:49:59 +0000 (17:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 Jun 2007 17:49:59 +0000 (17:49 +0000)
commit3cabc675ab40035c8498cacde76186c598aa373d
treefc53b8e96d1fad08a2e52521c660ec243aa626bf
parent7c07b136bc596ed1238e786490419b6d26587302
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