]> 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:23:32 +0000 (17:23 -0400)
commit43f2c66ea7413cc0aaf6ca040ad33fb65ca4412d
tree98f8e3fdd5a3bc99911beb7597e3ba5fc3366d69
parent67a2cd92295bef55d914a5c560b4cead5d456837
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
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