]> 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:08:52 +0000 (11:08 -0500)
commit6a688b736429e27a892bc02111414491fe4103b0
treeee9b30305beaf4dafdaebadf4d459b75f2e0f139
parentb141f9f3c8c5c7348daff5aa2a30850c3bf673ba
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
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/persistence.py
test/orm/test_bulk.py