mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 08:42:38 -04:00
Fix plpython breakage detected on certain Fedora machines on buildfarm.
Patch from Jan Urbański.
This commit is contained in:
parent
2f363590c1
commit
4c966d920f
1 changed files with 1 additions and 0 deletions
|
|
@ -3936,6 +3936,7 @@ PLy_add_exceptions(PyObject *plpy)
|
||||||
#endif
|
#endif
|
||||||
if (PyModule_AddObject(plpy, "spiexceptions", excmod) < 0)
|
if (PyModule_AddObject(plpy, "spiexceptions", excmod) < 0)
|
||||||
PLy_elog(ERROR, "failed to add the spiexceptions module");
|
PLy_elog(ERROR, "failed to add the spiexceptions module");
|
||||||
|
Py_INCREF(excmod);
|
||||||
|
|
||||||
PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL);
|
PLy_exc_error = PyErr_NewException("plpy.Error", NULL, NULL);
|
||||||
PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL);
|
PLy_exc_fatal = PyErr_NewException("plpy.Fatal", NULL, NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue