]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accommodate for query._current_path in subq eager load join_depth
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Apr 2017 16:02:18 +0000 (12:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Apr 2017 16:02:18 +0000 (12:02 -0400)
commit212132958f6cde1bbfcb91d2876e81d9d43c640f
tree14c0352605d4a5ba204adef2bdfe0e62f0392665
parent868fa20bc93dec79d01a2c6b3637aed350110a8e
Accommodate for query._current_path in subq eager load join_depth

Fixed bug in subquery eager loading where the "join_depth" parameter
for self-referential relationships would not be correctly honored,
loading all available levels deep rather than correctly counting
the specified number of levels for eager loading.

Change-Id: Ifa54085cbab3b41c2196f3ee519f485c63e4cb8d
Fixes: #3967
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/orm/strategies.py
test/orm/test_subquery_relations.py