Skip to content

Commit e3d7c9b

Browse files
committed
Remove typprtlen from getdescr() as it is not available in 7.3. Return -1 for
that field so that existing programs don't break.
1 parent 93902e9 commit e3d7c9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/python/pgdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ def getdescr(self, oid):
147147
return self.__type_cache[oid]
148148
except:
149149
self.__source.execute(
150-
"SELECT typname, typprtlen, typlen "
150+
"SELECT typname, typlen "
151151
"FROM pg_type WHERE oid = %s" % oid
152152
)
153153
res = self.__source.fetch(1)[0]
154154
# column name is omitted from the return value. It will
155155
# have to be prepended by the caller.
156156
res = (
157157
res[0],
158-
string.atoi(res[1]), string.atoi(res[2]),
158+
-1, 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