diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-31 15:46:53 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-08-31 17:21:35 -0400 |
| commit | 3feea4503ff211cdd1f6046b4b8ae16cf0dd08a3 (patch) | |
| tree | dfe1746528dc81c84b2e00936625de9fe687ecdc /doc | |
| parent | 2efd89d02941ab4267d6e2842963fd38b1539f6c (diff) | |
| download | sqlalchemy-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 'doc')
| -rw-r--r-- | doc/build/changelog/unreleased_11/4056.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_11/4056.rst b/doc/build/changelog/unreleased_11/4056.rst new file mode 100644 index 000000000..b8e02a05e --- /dev/null +++ b/doc/build/changelog/unreleased_11/4056.rst @@ -0,0 +1,10 @@ +.. change:: + :tags: bug, orm + :tickets: 4056 + :versions: 1.2.0b3 + + 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. |
