OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f36359
)
Fix plpython breakage detected on certain Fedora machines on buildfarm.
author
Andrew Dunstan
<andrew@dunslane.net>
Tue, 1 Mar 2011 23:59:31 +0000
(18:59 -0500)
committer
Andrew Dunstan
<andrew@dunslane.net>
Tue, 1 Mar 2011 23:59:31 +0000
(18:59 -0500)
Patch from Jan Urbański.
src/pl/plpython/plpython.c
patch
|
blob
|
history
diff --git
a/src/pl/plpython/plpython.c
b/src/pl/plpython/plpython.c
index
4cc0708
..
a2ebd22
100644
(file)
--- 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);