From a3eed9c9f530f62b6d4c595b0f66ab16c5a4978d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 5 Jun 2014 01:32:58 +0200 Subject: [PATCH] Added guard on params with no length on callproc --- psycopg/cursor_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c index 835f278b..effb2e66 100644 --- a/psycopg/cursor_type.c +++ b/psycopg/cursor_type.c @@ -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; }