]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure composite refresh handler synced w/ mutable composite
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Mar 2021 04:38:34 +0000 (23:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Mar 2021 04:40:20 +0000 (23:40 -0500)
commit90ca1b1be3b9014b2f1c7775ed128c2009dcf70a
tree092a1147172f5329ef1ff10c38d86d3dcbd70d44
parent8daa6ac765acc2b0a6c4aad165d80266258b2474
ensure composite refresh handler synced w/ mutable composite

Fixed issue where the :class:`_mutable.MutableComposite` construct could be
placed into an invalid state when the parent object was already loaded, and
then covered by a subsequent query, due to the composite properties'
refresh handler replacing the object with a new one not handled by the
mutable extension.

Fixes: #6001
Change-Id: Ieebd8e6afe6b65f8902cc12dec1efb968f5438ef
(cherry picked from commit 2f7623b6b265cd5f25f2a6022e21bc3286d397a3)
doc/build/changelog/unreleased_13/6001.rst [new file with mode: 0644]
lib/sqlalchemy/orm/descriptor_props.py
test/ext/test_mutable.py