]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Key subqueryloaders on the property object, not string key
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Apr 2020 20:00:22 +0000 (16:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Apr 2020 20:00:22 +0000 (16:00 -0400)
commita32c528c541670c0c4469523a3964712d79b7edd
tree89b107d1e482c7e5fa352b431ab8b7b5716fafde
parentc7d3ca0da477451885158a923aa9ee7e49794541
Key subqueryloaders on the property object, not string key

Fixed bug in :func:`.orm.selectinload` loading option where two or more
loaders that represent different relationships with the same string key
name as referenced from a single :func:`.orm.with_polymorphic` construct
with multiple subclass mappers would fail to invoke each subqueryload
separately, instead making use of a single string-based slot that would
prevent the other loaders from being invoked.

Fixes: #5228
Change-Id: Id0d1db8029ca88c13c0068115fe673adb7a68407
doc/build/changelog/unreleased_13/5228.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategies.py
test/orm/test_selectin_relations.py