]> 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>
Wed, 23 Aug 2017 21:20:17 +0000 (17:20 -0400)
commit827b495b8bc1c6c32ef7a872b7995abcb31a14d6
tree3ee9c4af816195050f9c54be3ec51545a9fc036b
parent3f9df2b86b4a8d7912d1190aead4aa084daf802c
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
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