diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-06-05 12:45:39 +0200 |
---|---|---|
committer | mrmilosz <milosz@milosz.ca> | 2015-12-12 17:51:45 -0500 |
commit | 4003b7c977fba9897da21446707671157a67e6ad (patch) | |
tree | 31a16fe18cb9ed907f73d10a9a2bc5f5fecc21c8 | |
parent | 021f6d22ad5995a24439befdf5acde2590556cf4 (diff) | |
download | psycopg2-4003b7c977fba9897da21446707671157a67e6ad.tar.gz |
Fixed callproc return value refcount
Temporary anyway: I want to go back returning a list (or dict).
-rw-r--r-- | psycopg/cursor_type.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c index 06a43f1..d10bfb8 100644 --- a/psycopg/cursor_type.c +++ b/psycopg/cursor_type.c @@ -1139,8 +1139,9 @@ psyco_curs_callproc(cursorObject *self, PyObject *args) if (0 <= _psyco_curs_execute( self, operation, pvals, self->conn->async, 0)) { - /* return None from this until it's DBAPI compliant... */ - res = Py_None; + /* return None from this until it's DBAPI compliant... */ + Py_INCREF(Py_None); + res = Py_None; } exit: |