Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93902e9 commit e3d7c9bCopy full SHA for e3d7c9b
src/interfaces/python/pgdb.py
@@ -147,15 +147,15 @@ def getdescr(self, oid):
147
return self.__type_cache[oid]
148
except:
149
self.__source.execute(
150
- "SELECT typname, typprtlen, typlen "
+ "SELECT typname, typlen "
151
"FROM pg_type WHERE oid = %s" % oid
152
)
153
res = self.__source.fetch(1)[0]
154
# column name is omitted from the return value. It will
155
# have to be prepended by the caller.
156
res = (
157
res[0],
158
- string.atoi(res[1]), string.atoi(res[2]),
+ -1, string.atoi(res[1]),
159
None, None, None
160
161
self.__type_cache[oid] = res
0 commit comments