Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3d7c9b

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 parent93902e9 commite3d7c9b

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
returnself.__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)

[8]ページ先頭

©2009-2025 Movatter.jp