]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add prop.secondary to FROM for dynamic loader
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Oct 2018 14:42:50 +0000 (10:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 17 Oct 2018 17:45:34 +0000 (13:45 -0400)
commit5311000cb390198afb9d96cf1aae17c713210b7b
treecabaa6503457a7f279eeca68c0fb07ae6c5cb1dd
parent8a083dcbb853343ff4a7dc6000f2e32474fa6125
Add prop.secondary to FROM for dynamic loader

Fixed bug where "dynamic" loader needs to explicitly set the "secondary"
table in the FROM clause of the query, to suit the case where the secondary
is a join object that is otherwise not pulled into the query from its
columns alone.

Fixes: #4349
Change-Id: I397f62abd5603efa4fb273586d0f772bf8c8fbbf
(cherry picked from commit d080aae128b081e6870dae325cb90202329784b4)
doc/build/changelog/unreleased_12/4349.rst [new file with mode: 0644]
lib/sqlalchemy/orm/dynamic.py
test/orm/test_dynamic.py