Fix PL/Python metadata when there is no result

Поиск
Список
Период
Сортировка
От Jean-Baptiste Quenot
Тема Fix PL/Python metadata when there is no result
Дата
Msg-id CAK6bCay4yrFJD3po_bCke4ukjjsPLkbf+ad07jZiAU3N6cwUiA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix PL/Python metadata when there is no result  (Peter Eisentraut <peter_e@gmx.net>)
Re: Fix PL/Python metadata when there is no result  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Dear hackers,

Thanks for the work on PLPython result metadata, it is very useful!  I
just came across a crash when trying to access this metadata on the
result of an UPDATE, which obviously cannot return any tuple (unless
you specify a RETURNING clause maybe?).

Please find attached a patch that solves this issue.  Instead of a PG
crash, we get the following message:

ERROR:  plpy.Error: no result fetched

All the best,
--
Jean-Baptiste Quenot

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: psql tab completion for SELECT
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: psql tab completion for SELECT