]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] Fixed issue where modified session state
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 01:32:52 +0000 (20:32 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 01:32:52 +0000 (20:32 -0500)
commitf9c2f85a3ac35cd0158dbd818ba0b9d209003304
tree794f4cac1bed82cfc8a7a901e090f82d15566e93
parent535fc8b1500cc11cc800ee3189d30bc6d8de51a7
- [bug] Fixed issue where modified session state
established after a failed flush would be committed
as part of the subsequent transaction that
begins automatically after manual call
to rollback().   The state of the session is
checked within rollback(), and if new state
is present, a warning is emitted and
restore_snapshot() is called a second time,
discarding those changes. [ticket:2389]

- repaired testing.assert_warnings to also verify
that any warnings were emitted
CHANGES
lib/sqlalchemy/orm/session.py
test/lib/testing.py
test/orm/test_session.py