]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add secondary selectable to FROM clauses for correlated exists
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Nov 2018 16:02:40 +0000 (11:02 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Nov 2018 22:37:02 +0000 (17:37 -0500)
commitfdfd1680603f6663182ba4766ae2f5abdd3ced45
tree5b4242a17c355d9567c937f992cefddf43ea1d79
parentfd8f0044fe42341c9b47578f44e3c9e77d2132c0
Add secondary selectable to FROM clauses for correlated exists

In continuing with a similar theme as that of very recent :ticket:`4349`,
repaired issue with :meth:`.RelationshipProperty.Comparator.any` and
:meth:`.RelationshipProperty.Comparator.has` where the "secondary"
selectable needs to be explicitly part of the FROM clause in the
EXISTS subquery to suit the case where this "secondary" is a :class:`.Join`
object.

Fixes: #4366
Change-Id: Icd0d0c3871bbd0059f0c9256e2b980edc2c90551
doc/build/changelog/unreleased_12/4366.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/test_query.py