typprtlen

Oliver Vecernik <[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Hi!

I tried to use PgSQL on Debian/Woody and received following error:

Python 2.1.3 (#1, Sep  7 2002, 15:29:56)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
 >>> from pyPgSQL import PgSQL
 >>> cx = PgSQL.connect('p200::test')
 >>> cu = cx.cursor()
 >>> cu.execute("select * from t1")
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.1/site-packages/pyPgSQL/PgSQL.py", line 2157, 
in execute
     self.__makedesc__()
   File "/usr/lib/python2.1/site-packages/pyPgSQL/PgSQL.py", line 1892, 
in __makedesc__
     _tn, _pl, _ia, _bt = _cache.getTypeInfo(_typ)
   File "/usr/lib/python2.1/site-packages/pyPgSQL/PgSQL.py", line 576, 
in getTypeInfo
     _res = self.__conn.conn.query("SELECT typname, typprtlen, typelem "
libpq.OperationalError: ERROR:  Attribute "typprtlen" not found

 >>>


ii  python-pgsql   2.0-3.1        A Python DB-API 2.0 interface to 
PostgreSQL

Am I doing something wrong, or is this a broken package in Debian?

Oliver




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.