| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера