]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reword implicit left join error; ensure deterministic FROM for columns
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Mar 2020 22:48:42 +0000 (18:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Mar 2020 22:53:21 +0000 (18:53 -0400)
commit5361cfb8d3d620e5ad98676596b32d60bc4330d0
treecd595cb190fec4b8f99dce316add854ebd024d21
parent1d36fccccd1abb9c6d31221c8204fe08f27dd7e6
Reword implicit left join error; ensure deterministic FROM for columns

Adjusted the error message emitted by :meth:`.Query.join` when a left hand
side can't be located that the :meth:`.Query.select_from` method is the
best way to resolve the issue.  Also, within the 1.3 series, used a
deterministic ordering when determining the FROM clause from a given column
entity passed to :class:`.Query` so that the same expression is determined
each time.

Fixes: #5194
Change-Id: I2e4065fd31e98c57edf2f11d5e831be44d2c1ea2
(cherry picked from commit 7d8c64f9087bcde14dc641fe75f93a04823b86d6)
doc/build/changelog/unreleased_13/5194.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_joins.py