From 6f14e2771a6e0a8f80a8d93e83e7d51df43c6283 Mon Sep 17 00:00:00 2001 From: "D'Arcy J.M. Cain" Date: Wed, 8 Jan 2003 13:42:16 +0000 Subject: [PATCH] Correction to last patch. As per the DB-API spec, we need to return None here, not -1. --- src/interfaces/python/pgdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py index 9a37cce7cc..848cb50940 100644 --- a/src/interfaces/python/pgdb.py +++ b/src/interfaces/python/pgdb.py @@ -155,7 +155,7 @@ class pgdbTypeCache: # have to be prepended by the caller. res = ( res[0], - -1, string.atoi(res[1]), + None, string.atoi(res[1]), None, None, None ) self.__type_cache[oid] = res