]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure col is not None when retrieving quick populators
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Aug 2017 20:33:10 +0000 (16:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 24 Aug 2017 13:41:12 +0000 (09:41 -0400)
commit3b5840f16a27e972c950890b3bbab1d9bfc460a6
tree55fc3e744f8a49f790b0a00aa597aff90dca36c2
parent4f27454fd3a82a632ee6b05a066eabdbb7071cee
Ensure col is not None when retrieving quick populators

Fixed bug where an :func:`.undefer_group` option would not be recognized
if it extended from a relationship that was loading using joined eager
loading.

In particular we need to double check the column both in terms of
the given "adapter" as well as without applying the "adapter"
when searching for the column in the result.

As we now avoid redoing the row processor step we also
improve on callcounts in joined eager loading.

Change-Id: I0f48766f12f7299f4626ff41a00bf1f5bfca5f3b
Fixes: #4048
(cherry picked from commit eee9dfd4514801f0c67f71632fc722731171479b)
doc/build/changelog/unreleased_11/4048.rst [new file with mode: 0644]
lib/sqlalchemy/orm/loading.py
test/orm/test_deferred.py
test/profiles.txt