summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/default_comparator.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-08-31 15:46:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-08-31 17:21:35 -0400
commit3feea4503ff211cdd1f6046b4b8ae16cf0dd08a3 (patch)
treedfe1746528dc81c84b2e00936625de9fe687ecdc /lib/sqlalchemy/sql/default_comparator.py
parent2efd89d02941ab4267d6e2842963fd38b1539f6c (diff)
downloadsqlalchemy-3feea4503ff211cdd1f6046b4b8ae16cf0dd08a3.tar.gz
Consider merge key with (None, ) as non-persistent
Fixed bug in :meth:`.Session.merge` where objects in a collection that had the primary key attribute set to ``None`` for a key that is typically autoincrementing would be considered to be a database-persisted key for part of the internal deduplication process, causing only one object to actually be inserted in the database. Change-Id: I0a6e00043be0b2979cda33740e1be3b430ecf8c7 Fixes: #4056 (cherry picked from commit 5243341ed886e10a0d3f7fef8ae3d071e0ffdcf0)
Diffstat (limited to 'lib/sqlalchemy/sql/default_comparator.py')
0 files changed, 0 insertions, 0 deletions