]> 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:14 +0000 (20:31 +0000)
commitc22ad5737717b5dca3b0e52ee967ea1c6945cace
treef8f8de2443e32975d8a405761ed65432ed10394e
parent96dacd02d67ce6387cdc679e117fb0fd1c9a7fe2
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
(cherry picked from commit e88788bb0c1fa596ab63cb787b0438213040b10a)
lib/sqlalchemy/orm/context.py