]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Disable single-inheritance critera on the outside of UNION
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Nov 2016 16:49:00 +0000 (11:49 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Nov 2016 16:53:33 +0000 (11:53 -0500)
commit7de0d1785335961ce0f723877ca7a8fd85b2c0ca
tree93aaacdfbcc497a87d21b9ab93b4cfd5a72a0631
parent68d3018ceefc33e42135ee208d6d492a47e695c7
Disable single-inheritance critera on the outside of UNION

Fixed bug related to :ticket:`3177`, where a UNION or other set operation
emitted by a :class:`.Query` would apply "single-inheritance" criteria
to the outside of the union (also referencing the wrong selectable),
even though this criteria is now expected to
be already present on the inside subqueries.  The single-inheritance
criteria is now omitted once union() or another set operation is
called against :class:`.Query` in the same way as :meth:`.Query.from_self`.

Change-Id: I0fd1331c7ba85a758a1c15e06c271914f2c717f3
Fixes: #3856
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/orm/query.py
test/orm/inheritance/test_single.py