]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add all versioning logic to _post_update()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Apr 2016 19:57:20 +0000 (15:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jun 2017 22:58:29 +0000 (18:58 -0400)
commit64b0760faa45a26c727a76b9fda97f2b4ea15417
tree595986b7b08eee231c18b7252b06adbcb0333789
parent7af05fcc9387cea4172cc35eb6a198776488f90d
Add all versioning logic to _post_update()

An UPDATE emitted as a result of the
:paramref:`.relationship.post_update` feature will now integrate with
the versioning feature to both bump the version id of the row as well
as assert that the existing version number was matched.

Fixes: #3496
Change-Id: I865405dd6069f1c1e3b0d27a4980e9374e059f97
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
doc/build/faq/sessions.rst
lib/sqlalchemy/orm/persistence.py
test/orm/test_versioning.py