Re: Checking for undefined in Perl interface code? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Checking for undefined in Perl interface code?
Date
Msg-id 15834.1011891296@sss.pgh.pa.us
Whole thread Raw
In response to Re: Checking for undefined in Perl interface code?  (Teodor Sigaev <teodor@stack.net>)
List pgsql-hackers
Teodor Sigaev <teodor@stack.net> writes:
> May be:
> if (! (SvOK(perlret) && perlret != &PL_sv_undef) ) {...

Apparently the correct way is
if (! (perlret && SvOK(perlret))) ...

Thanks for the tip.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: PostgreSQL crashes with Qmail-SQL
Next
From: Michael Devogelaere
Date:
Subject: Re: PostgreSQL crashes with Qmail-SQL