]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
pop prefetch values from committed_state when they are available
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 28 Dec 2023 21:02:48 +0000 (16:02 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 28 Dec 2023 21:02:48 +0000 (16:02 -0500)
commit46ec57e5cc5c66616087453a090754f4d0853c0c
treea84d154e6c97d17068a536d892ac9617db74fbe5
parent37d58e42d4163491b167e322bb9778857ed1085b
pop prefetch values from committed_state when they are available

Fixed issue where when making use of the
:paramref:`_orm.relationship.post_update` feature at the same time as using
a mapper version_id_col could lead to a situation where the second UPDATE
statement emitted by the post-update feature would fail to make use of the
correct version identifier, assuming an UPDATE was already emitted in that
flush which had already bumped the version counter.

Fixes: #10800
Change-Id: I3fccdb26ebbd2d987bb4f0e894449b7413556054
doc/build/changelog/unreleased_20/10800.rst [new file with mode: 0644]
lib/sqlalchemy/orm/persistence.py
test/orm/test_versioning.py