Problem with pyPgSQL 2.4 and PostgreSQL 7.4.1
Simon Kagedal <simon-cw5BCQWw5WiT+oYr5c/[email protected]> Mon, 12 Jan 2004 19:14:18 +0100
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
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