]> 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:21:50 +0000 (14:21 -0400)
commitfdf4796ccd62f112efb7b0dfb534adc9b4009255
tree95b831b93532bfca60b6d0d0f33851898d7cdedd
parent611a81315eb51e0463146d7c8104d5196e956058
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
(cherry picked from commit 7892cc30ad60ae450471b62f351b3beb66911892)
doc/build/changelog/unreleased_13/6392.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
test/orm/test_bulk.py