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

From: "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "James Robinson" <jlrobins(at)socialserve(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: 2 line patch to allow plpythonu functions to return void ...
Date: 2006-02-25 17:57:32
Message-ID: 7be3f35d0602250957r2d8ac3cby72cd5b4618eff433@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message James Robinson 2006-02-25 18:47:44 Re: 2 line patch to allow plpythonu functions to return void ...
Previous Message Tom Lane 2006-02-25 17:10:00 Re: 2 line patch to allow plpythonu functions to return void ...