]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adapt right side in join if lateral detected
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Sep 2018 15:38:52 +0000 (11:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Sep 2018 21:26:07 +0000 (17:26 -0400)
commit2625cf5a7deafb2fb1e2b63bb6a7b80e2c5787da
treebbf2aea230ef15da8d3a806b186698c38b882cc8
parent538589826f5c1ee2d85aa971030be08d4babaef3
Adapt right side in join if lateral detected

Fixed bug where use of :class:`.Lateral` construct in conjunction with
:meth:`.Query.join` as well as :meth:`.Query.select_entity_from` would not
apply clause adaption to the right side of the join.   "lateral" introduces
the use case of the right side of a join being correlatable.  Previously,
adaptation of this clause wasn't considered.

Fixes: #4334
Change-Id: I3631e562092769d30069a2aa5e50a580f4661a23
(cherry picked from commit 43f2c66ea7413cc0aaf6ca040ad33fb65ca4412d)
doc/build/changelog/unreleased_12/4334.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/selectable.py
test/orm/test_joins.py