[issue7572] Strabge issue : cursor.commit() with sqlite

Gerhard Häring report at bugs.python.org
Fri Dec 25 01:03:50 CET 2009


Gerhard Häring <gh at ghaering.de> added the comment:

Please change your test case so that it works with an in-memory database
":memory:". Then you'll also need to include a schema creation command
"create table", which is missing here.

Please also state which behaviour you see and which one you expect. Best
is to provide a test case that asserts the expected behaviour in code.

For example if you expect a certain SELECT statement to return more than
one value, you can use code like this:

{{{
cur.execute("select ...")
rows = cur.fetchall()
assert len(rows) > 1
}}}

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7572>
_______________________________________


More information about the Python-bugs-list mailing list