From: Simon K. <si...@jo...> - 2004-01-12 19:56:42
|
Nevermind - I found the problem, and it was of course mine. :) (PostgreSQL update triggered a bug in my SQL code.) Sorry for bothering you. Greetings, Simon On Mon, Jan 12, 2004 at 07:14:18PM +0100, Simon Kagedal wrote: > Hello! >=20 > 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. >=20 > It seems all select statements just return nothing. >=20 > The test suite gives me this output: >=20 > $ 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 >=20 > =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. >=20 > ---------------------------------------------------------------------- > Ran 66 tests in 0.700s >=20 > FAILED (failures=3D2) > $=20 >=20 > Thanks for any help! >=20 > --=20 > Simon K=E5gedal [ http://helgo.net/simon ] / H=F6rnan [ http://hornan.o= rg ] >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Pypgsql-users mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pypgsql-users --=20 Simon K=E5gedal [ http://helgo.net/simon ] / H=F6rnan [ http://hornan.org= ] |