]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add dependency for parent_pre post updates to parent deletes
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Feb 2018 21:45:39 +0000 (16:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Feb 2018 21:45:39 +0000 (16:45 -0500)
commit8607ae51fc5b74c181cdde6b89ade3ee30c12dad
treea9e76b484d681a82e501fe753489334cc35411d6
parent9ef891e82c187b3fda0f778073f258ef8b55124f
Add dependency for parent_pre post updates to parent deletes

Fixed issue in post_update feature where an UPDATE is emitted
when the parent object has been deleted but the dependent object
is not.   This issue has existed for a long time however
since 1.2 now asserts rows matched for post_update, this
was raising an error.

Change-Id: I31b1d22408e358962577435f0c4cb9a456ba0872
Fixes: #4187
doc/build/changelog/unreleased_11/4187.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dependency.py
test/orm/test_cycles.py