Correction to last patch. As per the DB-API spec, we need to return None

here, not -1.
This commit is contained in:
D'Arcy J.M. Cain 2003-01-08 13:42:16 +00:00
parent e38246a643
commit 6f14e2771a
1 changed files with 1 additions and 1 deletions

View 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