mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-13 19:57:53 +08:00
Correction to last patch. As per the DB-API spec, we need to return None
here, not -1.
This commit is contained in:
parent
e38246a643
commit
6f14e2771a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user