mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-13 12:36:33 +03:00
Added guard on params with no length on callproc
This commit is contained in:
parent
04ce14b251
commit
a3eed9c9f5
|
@ -1058,7 +1058,7 @@ psyco_curs_callproc(cursorObject *self, PyObject *args)
|
||||||
|
|
||||||
/* a Dict is complicated; the parameter names go into the query */
|
/* a Dict is complicated; the parameter names go into the query */
|
||||||
if (using_dict) {
|
if (using_dict) {
|
||||||
#if PG_VERSION_HEX >= 0x090000
|
#if PG_VERSION_NUM >= 90000
|
||||||
if (!(pnames = PyDict_Keys(parameters))) {
|
if (!(pnames = PyDict_Keys(parameters))) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user