summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/assertions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-01-09 23:03:40 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2018-01-12 12:59:09 -0500
commita216625bd03313e85f8063c2c875730e15edc4a4 (patch)
tree96856673e2d31f177b65c52e9132c904638db43f /lib/sqlalchemy/testing/assertions.py
parent3316890ffa9a51471ca7618e4a13e45494e03198 (diff)
downloadsqlalchemy-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/testing/assertions.py')
0 files changed, 0 insertions, 0 deletions