]> 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:03:28 +0000 (16:03 -0500)
commit429cbfe64c493c1cef532da892baf6871a6b2f90
treececbc54598e750216ef802d33f548909e664c154
parent341eee70434b783891e62f02bd59f7336b918b1b
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
(cherry picked from commit 46ec57e5cc5c66616087453a090754f4d0853c0c)
doc/build/changelog/unreleased_20/10800.rst [new file with mode: 0644]
lib/sqlalchemy/orm/persistence.py
test/orm/test_versioning.py