aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain <darcy@druid.net>2003-01-08 13:42:16 +0000
committerD'Arcy J.M. Cain <darcy@druid.net>2003-01-08 13:42:16 +0000
commit6f14e2771a6e0a8f80a8d93e83e7d51df43c6283 (patch)
tree2abf7ac8a61656caac1a0097377ac34da99370e1 /src/interfaces/python/pgdb.py
parente38246a643210b8d4fc7d0d7e80c2b96dc06a33d (diff)
downloadpostgresql-6f14e2771a6e0a8f80a8d93e83e7d51df43c6283.tar.gz
postgresql-6f14e2771a6e0a8f80a8d93e83e7d51df43c6283.zip
Correction to last patch. As per the DB-API spec, we need to return None
here, not -1.
Diffstat (limited to 'src/interfaces/python/pgdb.py')
-rw-r--r--src/interfaces/python/pgdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 9a37cce7ccb..848cb509407 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