Correction to last patch. As per the DB-API spec, we need to return None
authorD'Arcy J.M. Cain
Wed, 8 Jan 2003 13:42:16 +0000 (13:42 +0000)
committerD'Arcy J.M. Cain
Wed, 8 Jan 2003 13:42:16 +0000 (13:42 +0000)
here, not -1.

src/interfaces/python/pgdb.py

index 9a37cce7ccbb0af37e7fd7b10e77b6b45b63fdcb..848cb50940748abfa05b95e552e501a2b074445b 100644 (file)
@@ -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