]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
track_on needs to be a fixed size, support sub-tuples
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Apr 2021 15:54:52 +0000 (11:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Apr 2021 16:35:28 +0000 (12:35 -0400)
commita47c158a9a3b1104698fc0bff47ca58d67cb9191
treedd6400edf840c1c628ebbb25af1c118fd5c58835
parenta7157b29ba5830dd8f8a20e8df62eb9d56f6c759
track_on needs to be a fixed size, support sub-tuples

Fixed regression in ``selectinload`` loader strategy that would cause it to
cache its internal state incorrectly when handling relationships that join
across more than one column, such as when using a composite foreign key.
The invalid caching would then cause other loader operations to fail.

Fixes: #6410
Change-Id: I9f95ccca3553e7fd5794c619be4cf85c02b04626
doc/build/changelog/unreleased_14/6410.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/lambdas.py
test/orm/test_selectin_relations.py
test/sql/test_lambdas.py