]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Emit after_rollback() event before snapshot removal
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 11 Mar 2017 15:52:43 +0000 (10:52 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Mar 2017 19:40:31 +0000 (15:40 -0400)
commit4ece86eb41274ba059211807e23273178c3c3384
tree46bee27a53626f467530eb4e78cc7abc4beae843
parent596e322543df6ff380243c9cb0cf9997252329f6
Emit after_rollback() event before snapshot removal

The state of the :class:`.Session` is now present when the
:meth:`.SessionEvents.after_rollback` event is emitted, that is,  the
attribute state of objects prior to their being expired.   This is now
consistent with the  behavior of the
:meth:`.SessionEvents.after_commit` event which  also emits before the
attribute state of objects is expired.

Change-Id: I9c572656ec5a9bfaeab817e9c95107c75aca1b51
Fixes: #3934
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/orm/session.py
test/orm/test_events.py
test/orm/test_transaction.py