-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply adaptation for most recent aliased=True first
Fixed regression in :meth:`.Query.join` where the ``aliased=True`` flag would not properly apply clause adaptation to filter criteria, if a previous join were made to the same entity. This is because the adapters were placed in the wrong order. The order has been reversed so that the adapter for the most recent ``aliased=True`` call takes precedence as was the case in 1.2 and earlier. This broke the "elementtree" examples among other things. Fixes: #4704 Change-Id: I69f76c97b11157100854d552b5a0ce0103642ec4 (cherry picked from commit e657278)
- Loading branch information
Showing
3 changed files
with
127 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. change:: | ||
:tags: bug, orm | ||
:tickets: 4704 | ||
|
||
Fixed regression in :meth:`.Query.join` where the ``aliased=True`` flag | ||
would not properly apply clause adaptation to filter criteria, if a | ||
previous join were made to the same entity. This is because the adapters | ||
were placed in the wrong order. The order has been reversed so that the | ||
adapter for the most recent ``aliased=True`` call takes precedence as was | ||
the case in 1.2 and earlier. This broke the "elementtree" examples among | ||
other things. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters