Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid SQL on paginated results.
When a query with nested matching calls was reused (via pagination), the bound EagerLoadable instances for the nested relations were re-applied incorrectly. By cloning the eagerloader objects when preparing the count() query we can side-step this issue from happening as state is no longer shared between the two query executions. Refs #10633
- Loading branch information
Showing
4 changed files
with
62 additions
and
3 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
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
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