]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure attribute keys used for bulk update pk set
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Nov 2016 16:08:52 +0000 (11:08 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Nov 2016 16:10:38 +0000 (11:10 -0500)
commitd31fddce831605f37c50bf9728f14fc80e8cef80
treee91b60096b96257bcfcce09b1757fd9f65afadb5
parent611f9e1b42edabe50814b926188090d3cb4e7d21
Ensure attribute keys used for bulk update pk set

Fixed bug in :meth:`.Session.bulk_update_mappings` where an alternate-named
primary key attribute would not track properly into the UPDATE statement.

Change-Id: I33e9140f45827772768fa548adcfeb4dbfc2208d
Fixes: #3849
(cherry picked from commit 6a688b736429e27a892bc02111414491fe4103b0)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/persistence.py
test/orm/test_bulk.py