]> 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 22:06:03 +0000 (17:06 -0500)
commitf1125b79cc01646bfe4f00336757c186e820ddc9
treee95bed22457a7ae59e3a43f0b4913c4a0ae56478
parentcc6cef5184df8d85ab220a061bdcf31fc636f28d
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
(cherry picked from commit 8607ae51fc5b74c181cdde6b89ade3ee30c12dad)
doc/build/changelog/unreleased_11/4187.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dependency.py
test/orm/test_cycles.py