forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Binding order is incorrect when using cursor paginate with mul…
…tiple unions with a where (laravel#50884) * Add failing test for binding order * Add failing test for bindings with multiple order clauses * Fix binding order for cursor paginate with multiple unions * Use setBindings to clear the union bindings * Add bindings to nested union builders * Only reset union bindings if unions is set * Fix getting union builders for Eloquent queries * Remove duplicate bindings * Passthrough getRawBindings to support cursor pagination logic * Give each builder its own name to make the code easier to trace * Add test for multi union, multi where binding order problem * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Add docblock * Use FQN in the docblock Co-authored-by: Mior Muhammad Zaki <[email protected]> * Use FQN in the docblock Co-authored-by: Mior Muhammad Zaki <[email protected]> * formatting * formatting --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
8e9ab6d
commit 67d4d0d
Showing
5 changed files
with
166 additions
and
8 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
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