]> 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:49:35 +0000 (18:49 -0400)
commit7d8c64f9087bcde14dc641fe75f93a04823b86d6
treef8ca6841ebeb78a1bf3df9f3c8c1a16847ef886d
parent7c6bdc9f0d279be40d6f53b68a3a448b2ccfb73f
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
doc/build/changelog/unreleased_13/5194.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_joins.py