From: Billy G. A. <bg...@mu...> - 2003-03-05 06:45:54
|
"Billy G. Allie" wrote: > "Todd Reed" wrote: > > I ended up installing pyPgSQL 2.3 from the source distribution, and this > > did resolve the ImportError. However, there is an incompatibility between > > pyPgSQL 2.3 and PostgreSQL 7.3.2 (and possibly other 7.3.x releases). The > > system table pg_type used to have a column called "typprtlen" which is no > > longer present in PostgreSQL 7.3.2. pyPgSQL makes a query on pg_type that > > attempts to access this non-existent column to obtain information for the > > "description" field of cursor objects. I ended up modifying the query to > > always return -1; I think "typprtlen" was used to find the display width > > for the column. > > > > The 2.3 release does have the typprtlen problem. The CVS source contains a > fix for that problem as well as several others. The 2.3 release does contain the fix for the typprtlen problem. The change in the current CVS was to have display length in the cursor.description object return None instead of -1. > I would recommend getting > the latest source from CVS for the latest bug fixes. I still recomend getting the latest source from CVS, though. :-) -- ____ | Billy G. Allie | Domain....: Bil...@mu... | /| | 7436 Hartwell | MSN.......: B_G...@em... |-/-|----- | Dearborn, MI 48126| |/ |LLIE | (313) 582-1540 | |