summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain2003-01-08 13:42:16 +0000
committerD'Arcy J.M. Cain2003-01-08 13:42:16 +0000
commitc254e554837569682e9c0eeae8db9e2c7ab1b886 (patch)
treea2545478df457b88275f7a7a5c8179f2b73664bf
parentbe30d127c5ea62a30161072be6d03e349245f2ab (diff)
Correction to last patch. As per the DB-API spec, we need to return None
here, not -1.
-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 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