]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix regression for self-ref join to self error message
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Jul 2019 15:12:49 +0000 (11:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Jul 2019 15:14:54 +0000 (11:14 -0400)
commitf1f055e51bf039ca396edf53c8045d3b929fe717
treee231c2b96984dadc4adac514c4cc1fc75fd18fc4
parent194c7d3e3a464d453da0d46e4320b36257fc2236
Fix regression for self-ref join to self error message

Fixed regression caused by :ticket:`4365` where a join from an entity to
itself without using aliases no longer raises an informative error message,
instead failing on an assertion.  The informative error condition has been
restored.

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