Re: PL/Perl list value return causes segfault

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: PL/Perl list value return causes segfault
Дата
Msg-id 20050712235917.GA87056@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: PL/Perl list value return causes segfault  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Tue, Jul 12, 2005 at 02:59:37PM -0400, Andrew Dunstan wrote:
> 
> Note that all plperl functions are called in scalar context, and it is 
> always wrong to return a list (as opposed to a listref). In fact, the 
> value received might surprise you even if it worked (it would be the 
> value of the last member of the list).

Yeah, I knew that returning a list was contrary to what was expected, but
I wanted to see what would happen.  I wasn't expecting a core dump :-(
Thanks for the patch.

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: PL/Perl list value return causes segfault
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] HEAD doesn't cope with libraries in non-default