]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't include SelectBase when searching for surface column elements
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 5 Oct 2017 15:25:10 +0000 (11:25 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 5 Oct 2017 15:30:01 +0000 (11:30 -0400)
commit71b6a1375513b43a92c65148fa280b6794e701cf
tree8d2d60c2fba1bdf0b3ef44e433a9e0e516045e04
parenteb859dcd2ced86d5ecdcf26cd342de454bc18af8
Don't include SelectBase when searching for surface column elements

Fixed bug where correlated select used against single-table inheritance
entity would fail to render correctly in the outer query, due to adjustment
for single inheritance discriminator criteria inappropriately re-applying
the criteria to the outer query.

Change-Id: I38df21f1392af1843e10119682fa0635d346e2a8
Fixes: #4103
(cherry picked from commit 1281e6e6c41ad3d7240fe50f4fecab4083b79975)
doc/build/changelog/unreleased_11/4103.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/util.py
test/orm/inheritance/test_single.py