]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
reconcile #12326 and #12328
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Feb 2025 20:26:24 +0000 (15:26 -0500)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Feb 2025 20:31:02 +0000 (20:31 +0000)
commit1cdaae5e5706749614f04cef79e85a50143f9ec7
tree3ed9d5984f4568c648c4b189defbb9d490e48014
parent5f6d800ed44245afb77b9fae1acc1d3d80ad81b3
reconcile #12326 and #12328

These two issues both involve ORM DML RETURNING.   The looser
column inclusion rules given in #12328 then included a correlated
subquery column_property given in #12326, which does not work
in RETURNING.  so re-tighten UPDATE/DELETE with a more specific
rule to cut out local mapped props that are not persisted columns,
but still allow other mapped props through without blocking them.

Fixes: #12326
Change-Id: I8fe7b8ab9b85907e562648433fdb3c7ba160c0d0
lib/sqlalchemy/orm/context.py