Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6f14e27

Browse files
committed
Correction to last patch. As per the DB-API spec, we need to return None
here, not -1.
1 parent e38246a commit 6f14e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/python/pgdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def getdescr(self, oid):
155155
# have to be prepended by the caller.
156156
res = (
157157
res[0],
158-
-1, string.atoi(res[1]),
158+
None, string.atoi(res[1]),
159159
None, None, None
160160
)
161161
self.__type_cache[oid] = res

0 commit comments

Comments
 (0)