]> 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:19 +0000 (11:14 -0400)
commit736186f840646773217d3f7ba3f6a5d0bbfe1fdb
treef81df43209df75b1ab9a992c894fc5b166834955
parentc01f90de584f50f036c5b6d0c44074b4b3014da4
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
doc/build/changelog/unreleased_13/4773.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_joins.py