Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion
Дата
Msg-id 13918.1183048443@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3415: plperl spi_exec_prepared variable undef value confusion  ("Matt" <matt@lindenelevator.com>)
Ответы Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-bugs
"Matt" <matt@lindenelevator.com> writes:
> Description:        plperl spi_exec_prepared variable undef value confusion

[ pokes at it ... ]  Some of the places in plperl.c that are checking for
undef values use code like

    if (SvOK(val) && SvTYPE(val) != SVt_NULL)

and some just test the SvTYPE part.  It looks to me like the SvOK test
is essential --- in fact I'm not sure the SvTYPE test is even bringing
anything to the party.  Any perl-extension gurus around here?

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: BUG #3417: Foreign key constraint violation occurs unexpectedly
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3415: plperl spi_exec_prepared variable undef value confusion