From: Simon K. <si...@jo...> - 2004-01-12 18:14:42
|
Hello! I have earlier successfully used pyPgSQL 2.3 with PostgreSQL 7.1.3. Now we upgraded PostgreSQL to 7.4.1, and my code stopped working. I upgraded pyPgSQL to 2.4. Now I don't get error messages, but it's still not working as it should. It seems all select statements just return nothing. The test suite gives me this output: $ python2 software/pypgsql-2.4/test/PgSQLTestCases.py ........................................F.F....................... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: CheckDoMoreResultObjectChecks (__main__.PgSQLTestCases) ---------------------------------------------------------------------- Traceback (most recent call last): File "software/pypgsql-2.4/test/PgSQLTestCases.py", line 817, in CheckDoMoreResultObjectChecks self.fail(msg) File "/var/tmp/python2-2.2-root/usr/lib/python2.2/unittest.py", line 254, in fail raise self.failureException, msg AssertionError: 7.4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: Test execute() with a singleton string as the parameter. ---------------------------------------------------------------------- Traceback (most recent call last): File "software/pypgsql-2.4/test/PgSQLTestCases.py", line 639, in CheckExecuteWithSingleton "Length of cur.description is %d, it should be %d." % File "/var/tmp/python2-2.2-root/usr/lib/python2.2/unittest.py", line 286, in failUnlessEqual raise self.failureException, \ AssertionError: Length of cur.description is 11, it should be 4. ---------------------------------------------------------------------- Ran 66 tests in 0.700s FAILED (failures=3D2) $=20 Thanks for any help! --=20 Simon K=E5gedal [ http://helgo.net/simon ] / H=F6rnan [ http://hornan.org= ] |