]> 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:38:34 +0000 (23:38 -0500)
commit2f7623b6b265cd5f25f2a6022e21bc3286d397a3
tree28e5479ddd8dea41d02f327633c59e611e142a51
parent5c4c7b0c6793d4cec364fb5fa9c5063feb4827f7
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
doc/build/changelog/unreleased_13/6001.rst [new file with mode: 0644]
lib/sqlalchemy/orm/descriptor_props.py
test/ext/test_mutable.py