Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group