]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure Bundle / DML RETURNING has test support, full impl
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Dec 2023 14:00:03 +0000 (09:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Dec 2023 15:19:13 +0000 (10:19 -0500)
commitdf6f3a232393a647052bf6b52d73e4529f7d69e9
tree1196ac4fb9ad5d64cc148cb07844582a23c9e0f1
parente4467a2b869506f3e826bef483211950a44b1071
ensure Bundle / DML RETURNING has test support, full impl

Ensured the use case of :class:`.Bundle` objects used in the
``returning()`` portion of ORM-enabled INSERT, UPDATE and DELETE statements
is tested and works fully.   This was never explicitly implemented or
tested previously and did not work correctly in the 1.4 series; in the 2.0
series, ORM UPDATE/DELETE with WHERE criteria was missing an implementation
method preventing :class:`.Bundle` objects from working.

Fixes: #10776
Change-Id: I32298e65ac590a12b47dd6ba00b7d56038b8a450
(cherry picked from commit 6e089c3dbf7e7348da84dfc62cc1c6100a257fd4)
doc/build/changelog/unreleased_20/10776.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/dml/test_bulk_statements.py
test/orm/dml/test_update_delete_where.py