diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-03-20 00:47:20 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2013-03-20 01:48:17 +0000 |
commit | 0830deb7902e1f0931a1e2396237bba604d8d670 (patch) | |
tree | 30fe460838f398d19053cfccfcf7241f281a39e8 /psycopg/connection_int.c | |
parent | 16021dae6dd2d65f5d864db6dee8844f18e110c0 (diff) | |
download | psycopg2-0830deb7902e1f0931a1e2396237bba604d8d670.tar.gz |
Dropped IFCLEARPGRES macro
PQclear already guards against NULL, so the extra check is redundant
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r-- | psycopg/connection_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c index 6cca1ce..f36a0db 100644 --- a/psycopg/connection_int.c +++ b/psycopg/connection_int.c @@ -890,7 +890,7 @@ conn_poll(connectionObject *self) } curs = (cursorObject *)py_curs; - IFCLEARPGRES(curs->pgres); + CLEARPGRES(curs->pgres); curs->pgres = pq_get_last_result(self); /* fetch the tuples (if there are any) and build the result. We |