diff options
author | D'Arcy J.M. Cain <darcy@druid.net> | 2002-12-04 12:23:42 +0000 |
---|---|---|
committer | D'Arcy J.M. Cain <darcy@druid.net> | 2002-12-04 12:23:42 +0000 |
commit | e3d7c9ba5434cdf743a8b921db457f3fb52a377d (patch) | |
tree | 02b94c63b71282be8c71196d7a9178c81ed3bfa0 /src/interfaces/python/pgdb.py | |
parent | 93902e9521ca1e707477da897c0f7d871b7e354f (diff) | |
download | postgresql-e3d7c9ba5434cdf743a8b921db457f3fb52a377d.tar.gz postgresql-e3d7c9ba5434cdf743a8b921db457f3fb52a377d.zip |
Remove typprtlen from getdescr() as it is not available in 7.3. Return -1 for
that field so that existing programs don't break.
Diffstat (limited to 'src/interfaces/python/pgdb.py')
-rw-r--r-- | src/interfaces/python/pgdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py index 62b551b9954..9a37cce7ccb 100644 --- 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, 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 |