]> 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:24:32 +0000 (14:24 -0400)
commite79ab08165e01dc7af50fcffadb31468ace51b6c
tree43961bb056e9f0b0c7069bf3e5dea533dccd2c8f
parent0108d1769830c9e4e95f2250d2f382476ee90de6
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
doc/build/changelog/unreleased_14/9590.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
test/orm/test_ac_relationships.py