]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix mapper._primary_key_propkeys
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Apr 2021 16:03:47 +0000 (12:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Apr 2021 18:20:27 +0000 (14:20 -0400)
commit7892cc30ad60ae450471b62f351b3beb66911892
treefc26a41d0b680f72023a16a8b40c12f81f0c1566
parent9e3ef9bcf0a41bfacc4e6e836a45ed4d89c7c0fe
fix mapper._primary_key_propkeys

Fixed issue in :meth:`_orm.Session.bulk_save` when used with persistent
objects which would fail to track the primary key of mappings where the
column name of the primary key were different than the attribute name.

Fixes: #6392
Change-Id: I9b89bf00f900b7d2287517249e4f9356f20f0bdb
doc/build/changelog/unreleased_13/6392.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/test_bulk.py