From: Christoph B. <cgb...@gm...> - 2005-02-01 11:42:42
|
I used the inoffical compiled pypgsql version for Python 2.4, made available by Gerhard Häring. In the database (PgSQL Version 8.0 as well as 7.4.3) I do have a column with type float8 and values like 2.3. This worked and still worked and still works fine on Windows with Python 2.3. With Python 2.4 however, with pypgsql, with cursor.execute() and then cursor.fetchall() for example, I got only a value of 2.0 while 2.3 is still in the database. With every value in this column I just got a zero at the right side of the decimal point. After switching back to python 2.3 everything works fine again. It seems there is a bug in the newer version of pypgsql. Regards Christoph Becker |