提交 e3d7c9ba 编写于 作者: D D'Arcy J.M. Cain

Remove typprtlen from getdescr() as it is not available in 7.3. Return -1 for

that field so that existing programs don't break.
上级 93902e95
......@@ -147,7 +147,7 @@ class pgdbTypeCache:
return self.__type_cache[oid]
except:
self.__source.execute(
"SELECT typname, typprtlen, typlen "
"SELECT typname, typlen "
"FROM pg_type WHERE oid = %s" % oid
)
res = self.__source.fetch(1)[0]
......@@ -155,7 +155,7 @@ class pgdbTypeCache:
# have to be prepended by the caller.
res = (
res[0],
string.atoi(res[1]), string.atoi(res[2]),
-1, string.atoi(res[1]),
None, None, None
)
self.__type_cache[oid] = res
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册