]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add explicit step to set populate_existing for bulk insert
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 May 2023 13:16:10 +0000 (09:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 May 2023 13:20:58 +0000 (09:20 -0400)
commitdc60e7a7d35a470c09ce590f37e949ff8e8cdcde
tree1b4a8eb5701ea62575fc975aa0a1700c553fb03a
parentdb9a2caa43f0e8539bd1b3d8a2522f8018903605
add explicit step to set populate_existing for bulk insert

Fixed issue in new :ref:`orm_queryguide_upsert_returning` feature where the
``populate_existing`` execution option was not being propagated to the
loading option, preventing existing attributes from being refreshed
in-place.

Fixes: #9746
Change-Id: I3efcab644e2b5874c6b265d5313f353c051db629
doc/build/changelog/unreleased_20/9746.rst [new file with mode: 0644]
lib/sqlalchemy/orm/bulk_persistence.py
test/orm/dml/test_bulk_statements.py