OSDN Git Service

Allow PL/Python functions to return void, per gripe from James Robinson
authorNeil Conway <neilc@samurai.com>
Tue, 28 Feb 2006 20:03:52 +0000 (20:03 +0000)
committerNeil Conway <neilc@samurai.com>
Tue, 28 Feb 2006 20:03:52 +0000 (20:03 +0000)
commit87daae1143520309da299b78a8e7a68f141a268f
tree3ad11f9a73ee33a908d877869f88b79c1afaed63
parentc6b6f7ad6417ea64c4f56507b85287db97ce508c
Allow PL/Python functions to return void, per gripe from James Robinson
(I didn't use his patch, however). A void-returning PL/Python function
must return None (from Python), which is translated into a void datum
(and *not* NULL) for Postgres. I also added some regression tests for
this functionality.
src/pl/plpython/expected/plpython_function.out
src/pl/plpython/expected/plpython_test.out
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_function.sql
src/pl/plpython/sql/plpython_test.sql