Re: Checking for undefined in Perl interface code?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Teodor Sigaev <teodor(at)stack(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Checking for undefined in Perl interface code?
Date: 2002-01-24 16:54:56
Message-ID: 15834.1011891296@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Teodor Sigaev <teodor(at)stack(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2002-01-24 16:58:14 Re: Add OR REPLACE clauses to non-FUNCTION object creation in PostgreSQL 7.3
Previous Message Justin Clift 2002-01-24 16:48:40 Re: PostgreSQL crashes with Qmail-SQL