]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
consider aliased mappers in cycles also
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Apr 2023 18:24:32 +0000 (14:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Apr 2023 18:27:58 +0000 (14:27 -0400)
commit1aef8e75a69319469d3b447422b8cdee2a1cf894
tree3442ffe10828ac12c99ab766b96fbe9e4b19e128
parent1a7f56a1bd2c583577159343327b04a49e8f57fb
consider aliased mappers in cycles also

Fixed endless loop which could occur when using "relationship to aliased
class" feature and also indicating a recursive eager loader such as
``lazy="selectinload"`` in the loader, in combination with another eager
loader on the opposite side. The check for cycles has been fixed to include
aliased class relationships.

Fixes: #9590
Change-Id: I8d340882f040ff9289c209bedd8fbdfd7186f944
(cherry picked from commit e79ab08165e01dc7af50fcffadb31468ace51b6c)
doc/build/changelog/unreleased_14/9590.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
test/orm/test_ac_relationships.py