Re: Checking for undefined in Perl interface code?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Checking for undefined in Perl interface code?
Дата
Msg-id 15834.1011891296@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Checking for undefined in Perl interface code?  (Teodor Sigaev <teodor@stack.net>)
Список 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 по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: PostgreSQL crashes with Qmail-SQL
Следующее
От: Michael Devogelaere
Дата:
Сообщение: Re: PostgreSQL crashes with Qmail-SQL