]> 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:11:57 +0000 (13:11 -0400)
commit7001429a7561b3c55dd52b96dfa419004e535743
tree3417a82ae9acd3c96ecb38724966b1af3da1fae2
parent881be0a21633b3fee101cb34cc611904b8cba618
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
doc/build/changelog/unreleased_20/11661.rst [new file with mode: 0644]
lib/sqlalchemy/orm/bulk_persistence.py
test/orm/dml/test_bulk.py