Re: another plperl bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: another plperl bug
Дата
Msg-id 16356.1101142316@sss.pgh.pa.us
обсуждение исходный текст
Ответ на another plperl bug  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
"Andrew Dunstan" <andrew@dunslane.net> writes:
> I discovered a further plperl bug last night. If foo() is a SRF and
> therefore returns an arrayref, calling select foo() rather than select *
> from foo() causes a segfault because this line passes NULL as the argument:

>     tupdesc = CreateTupleDescCopy(rsinfo->expectedDesc);

> I am not sure I even know what the behaviour should be, and my available
> time to work on a fix is severely contrained ATM.

It should do the same as plpgsql: throw an error about "set-returning
function called in a context that cannot accept a set", or however that
was phrased.  I'll put in a fix.
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Beta5 now Available
Следующее
От: David Fetter
Дата:
Сообщение: Re: Beta5 now Available