]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
mutate lists in place for return_defaults=True
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Aug 2024 13:49:55 +0000 (09:49 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Aug 2024 17:12:02 +0000 (13:12 -0400)
commit30531c50d0167e36a5b2db91eee90e12e83d0f01
tree177d49712fc19bc30496a164d256c01f93f0fb65
parent72c9889a9cc8019bb95419c62969ebc7897f3ba5
mutate lists in place for return_defaults=True

Fixed regression from version 1.4 in
:meth:`_orm.Session.bulk_insert_mappings` where using the
:paramref:`_orm.Session.bulk_insert_mappings.return_defaults` parameter
would not populate the passed in dictionaries with newly generated primary
key values.

Fixes: #11661
Change-Id: I331d81a5b04456f107eb868f882d67773b3eec38
(cherry picked from commit 7001429a7561b3c55dd52b96dfa419004e535743)
doc/build/changelog/unreleased_20/11661.rst [new file with mode: 0644]
lib/sqlalchemy/orm/bulk_persistence.py
test/orm/dml/test_bulk.py