static PyObject *PLy_exc_fatal = NULL;
static PyObject *PLy_exc_spi_error = NULL;
-/* End-of-set Indication */
-static PyObject *PLy_endofset = NULL;
-
/* some globals for the python module
*/
static char PLy_plan_doc[] = {
fcinfo->isnull = true;
rv = (Datum) NULL;
}
- /* test for end-of-set condition */
- else if (fcinfo->flinfo->fn_retset && plrv == PLy_endofset)
- {
- ReturnSetInfo *rsi;
-
- fcinfo->isnull = true;
- rv = (Datum)NULL;
- rsi = (ReturnSetInfo *)fcinfo->resultinfo;
- rsi->isDone = ExprEndResult;
- }
else
{
fcinfo->isnull = false;
PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL);
PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL);
PLy_exc_spi_error = PyErr_NewException("plpy.SPIError", NULL, NULL);
- PLy_endofset = PyErr_NewException("plpy.EndOfSet",NULL,NULL);
PyDict_SetItemString(plpy_dict, "Error", PLy_exc_error);
PyDict_SetItemString(plpy_dict, "Fatal", PLy_exc_fatal);
PyDict_SetItemString(plpy_dict, "SPIError", PLy_exc_spi_error);
- PyDict_SetItemString(plpy_dict, "EndOfSet", PLy_endofset);
/*
* initialize main module, and add plpy