postgres.git / summary / log / commit / refs
commit 4c966d920fb75a5d0366b887c2ef28e6d87c1eda
Author: Andrew Dunstan <andrew@dunslane.net>
Date: Tue Mar 01 23:59:31 2011 +0000
Fix plpython breakage detected on certain Fedora machines on buildfarm.
Patch from Jan UrbaĆski.
src/pl/plpython/plpython.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c
index 4cc0708dcb9..a2ebd22428c 100644
--- a/src/pl/plpython/plpython.c
+++ b/src/pl/plpython/plpython.c
@@ -3936,6 +3936,7 @@ PLy_add_exceptions(PyObject *plpy)
#endif
if (PyModule_AddObject(plpy, "spiexceptions", excmod) < 0)
PLy_elog(ERROR, "failed to add the spiexceptions module");
+ Py_INCREF(excmod);
PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL);
PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL);
[parent: 2f363590c17c]