Re: 2 line patch to allow plpythonu functions to return void ...

Поиск
Список
Период
Сортировка
От Harald Armin Massa
Тема Re: 2 line patch to allow plpythonu functions to return void ...
Дата
Msg-id 7be3f35d0602250957r2d8ac3cby72cd5b4618eff433@mail.gmail.com
обсуждение исходный текст
Ответ на Re: 2 line patch to allow plpythonu functions to return void ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom,

This sort of thing normally requires more thought than just removing
the safety check.  What happens when the python code does/doesn't return
a value, in both cases (declared return type void or not)?

python functions are specified to return "None", if no return is given. I recommend to also see a plpython function as a Python function, and return None if no return is specified.



--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
When I visit a mosque, I show my respect by taking off my shoes. I follow the customs, just as I do in a church, synagogue or other holy place. But if a believer demands that I, as a nonbeliever, observe his taboos in the public domain, he is not asking for my respect, but for my submission. And that is incompatible with a secular democracy.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 2 line patch to allow plpythonu functions to return void ...
Следующее
От: James Robinson
Дата:
Сообщение: Re: 2 line patch to allow plpythonu functions to return void ...