Added guard on params with no length on callproc

This commit is contained in:
Daniele Varrazzo 2014-06-05 01:32:58 +02:00 committed by mrmilosz
parent 04ce14b251
commit a3eed9c9f5

View File

@ -1058,7 +1058,7 @@ psyco_curs_callproc(cursorObject *self, PyObject *args)
/* a Dict is complicated; the parameter names go into the query */
if (using_dict) {
#if PG_VERSION_HEX >= 0x090000
#if PG_VERSION_NUM >= 90000
if (!(pnames = PyDict_Keys(parameters))) {
goto exit;
}