Re: Problem with pyPgSQL 2.4 and PostgreSQL 7.4.1
Simon Kagedal <simon-cw5BCQWw5WiT+oYr5c/[email protected]> Mon, 12 Jan 2004 20:56:38 +0100
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
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! > > 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....................... > ====================================================================== > 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 > > ====================================================================== > 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=2) > $ > > Thanks for any help! > > -- > Simon Kågedal [ http://helgo.net/simon ] / Hörnan [ http://hornan.org ] > > > ------------------------------------------------------- > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/pypgsql-users -- Simon Kågedal [ http://helgo.net/simon ] / Hörnan [ http://hornan.org ] ------------------------------------------------------- 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