]> 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:06 +0000 (10:19 -0500)
commit6e089c3dbf7e7348da84dfc62cc1c6100a257fd4
tree4d0194a0c350743a48d6875572bb2c73fdfba693
parentca9adf3028095ff28bdef823d6f6cefc12815b3c
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
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