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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy