|
29 | 29 | * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
30 | 30 | *
|
31 | 31 | * IDENTIFICATION
|
32 |
| - * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.63 2005/07/04 18:59:42 momjian Exp $ |
| 32 | + * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.64 2005/07/05 18:15:51 momjian Exp $ |
33 | 33 | *
|
34 | 34 | *********************************************************************
|
35 | 35 | */
|
@@ -286,9 +286,6 @@ static PyObject *PLy_exc_error = NULL;
|
286 | 286 | static PyObject *PLy_exc_fatal = NULL;
|
287 | 287 | static PyObject *PLy_exc_spi_error = NULL;
|
288 | 288 |
|
289 |
| -/* End-of-set Indication */ |
290 |
| -static PyObject *PLy_endofset = NULL; |
291 |
| - |
292 | 289 | /* some globals for the python module
|
293 | 290 | */
|
294 | 291 | static char PLy_plan_doc[] = {
|
@@ -773,16 +770,6 @@ PLy_function_handler(FunctionCallInfo fcinfo, PLyProcedure * proc)
|
773 | 770 | fcinfo->isnull = true;
|
774 | 771 | rv = (Datum) NULL;
|
775 | 772 | }
|
776 |
| - /* test for end-of-set condition */ |
777 |
| - else if (fcinfo->flinfo->fn_retset && plrv == PLy_endofset) |
778 |
| - { |
779 |
| - ReturnSetInfo *rsi; |
780 |
| - |
781 |
| - fcinfo->isnull = true; |
782 |
| - rv = (Datum)NULL; |
783 |
| - rsi = (ReturnSetInfo *)fcinfo->resultinfo; |
784 |
| - rsi->isDone = ExprEndResult; |
785 |
| - } |
786 | 773 | else
|
787 | 774 | {
|
788 | 775 | fcinfo->isnull = false;
|
@@ -2330,11 +2317,9 @@ PLy_init_plpy(void)
|
2330 | 2317 | PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL);
|
2331 | 2318 | PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL);
|
2332 | 2319 | PLy_exc_spi_error = PyErr_NewException("plpy.SPIError", NULL, NULL);
|
2333 |
| - PLy_endofset = PyErr_NewException("plpy.EndOfSet",NULL,NULL); |
2334 | 2320 | PyDict_SetItemString(plpy_dict, "Error", PLy_exc_error);
|
2335 | 2321 | PyDict_SetItemString(plpy_dict, "Fatal", PLy_exc_fatal);
|
2336 | 2322 | PyDict_SetItemString(plpy_dict, "SPIError", PLy_exc_spi_error);
|
2337 |
| - PyDict_SetItemString(plpy_dict, "EndOfSet", PLy_endofset); |
2338 | 2323 |
|
2339 | 2324 | /*
|
2340 | 2325 | * initialize main module, and add plpy
|
|
0 commit comments