]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in :meth:`.Session.merge` where an object with a composite
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Feb 2016 03:29:18 +0000 (22:29 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Feb 2016 03:31:44 +0000 (22:31 -0500)
commita74b028f9f5b59b7c3f2f9d6b785abf56f77609c
treee558ef437b4e9c12f6932a7b8cf5dd5229053baa
parent3215a2dac0e54624a17a96a2caae8ff74ab1e4ba
- Fixed bug in :meth:`.Session.merge` where an object with a composite
primary key that has values for some but not all of the PK fields
would emit a SELECT statement leaking the internal NEVER_SET symbol
into the query, rather than detecting that this object does not have
a searchable primary key and no SELECT should be emitted.
fixes #3647

(cherry picked from commit 366f97b5617af0d15cfaf594ec5ef0408c70e873)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/session.py
test/orm/test_merge.py