diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-01-09 23:03:40 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-01-12 12:59:09 -0500 |
commit | a216625bd03313e85f8063c2c875730e15edc4a4 (patch) | |
tree | 96856673e2d31f177b65c52e9132c904638db43f /lib/sqlalchemy/sql/functions.py | |
parent | 3316890ffa9a51471ca7618e4a13e45494e03198 (diff) | |
download | sqlalchemy-a216625bd03313e85f8063c2c875730e15edc4a4.tar.gz |
Limit select in loading for correct types
Fixed bug in new "selectin" relationship loader where the loader could try
to load a non-existent relationship when loading a collection of
polymorphic objects, where only some of the mappers include that
relationship, typically when :meth:`.PropComparator.of_type` is being used.
This generalizes the mapper limiting that was present
in _load_subclass_via_in() to be part of the PostLoad object
itself, and is used by both polymorphic selectin loading and
relationship selectin loading.
Change-Id: I31416550e27bc8374b673860f57d9dcf96abe87d
Fixes: #4156
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
0 files changed, 0 insertions, 0 deletions