OSDN Git Service

This patch allows the PL/Python module to do (SRF) functions.
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 19:03:30 +0000 (19:03 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 19:03:30 +0000 (19:03 +0000)
commitaf8756713fcbbf907954b7a77072229910662520
treeef598ad56f56192a4dbcdd7a2747b4f79300e2db
parent109f079be65b1d5e725e117ba2764af72007cc3b
This patch allows the PL/Python module to do (SRF) functions.

The patch was taken from the CVS version.

I have modified the plpython.c file and have added a test sql script for
testing the functionality. It was actually the script that was in the
8.0.3 version but have since been removed.

In order to signal the end of a set, the called python function must
simply return plpy.EndOfSet and the set would be returned.

Gerrit van Dyk
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_setof.sql [new file with mode: 0644]