]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement _postfetch_post_update to expire/refresh onupdates in post_update
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Apr 2016 19:56:02 +0000 (15:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Jun 2017 22:39:08 +0000 (18:39 -0400)
commit9dee44ae2f8b113d23f8a6e192f77fb4e3837894
treea036e00e8e388788025a7ae334e502b9d6f7a858
parentbb6a1f690d4a749df44a1ef329b66f71205968fe
Implement _postfetch_post_update to expire/refresh onupdates in post_update

Fixed bug involving the :paramref:`.relationship.post_update` feature
where a column "onupdate" value would not result in expiration or
refresh of the corresponding object attribute, if the UPDATE for the
row were a result of the "post update" feature.  Additionally, the
:meth:`.SessionEvents.refresh_flush` event is now emitted for these
attributes when refreshed within the flush.

Fixes: #3472
Change-Id: I5ee2d715e773a306ab1e8143e4382c228991ac78
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/orm/persistence.py
test/orm/test_cycles.py