OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93902e9
)
Remove typprtlen from getdescr() as it is not available in 7.3. Return -1 for
author
D'Arcy J.M. Cain
<darcy@druid.net>
Wed, 4 Dec 2002 12:23:42 +0000
(12:23 +0000)
committer
D'Arcy J.M. Cain
<darcy@druid.net>
Wed, 4 Dec 2002 12:23:42 +0000
(12:23 +0000)
that field so that existing programs don't break.
src/interfaces/python/pgdb.py
patch
|
blob
|
history
diff --git
a/src/interfaces/python/pgdb.py
b/src/interfaces/python/pgdb.py
index
62b551b
..
9a37cce
100644
(file)
--- a/
src/interfaces/python/pgdb.py
+++ b/
src/interfaces/python/pgdb.py
@@
-147,7
+147,7
@@
class pgdbTypeCache:
return self.__type_cache[oid]
except:
self.__source.execute(
- "SELECT typname, typ
prtlen, typ
len "
+ "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