Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Update runPaginationCountQuery to support groupBy and sub-selects #32688

Merged
merged 4 commits into from
May 5, 2020
Merged

[7.x] Update runPaginationCountQuery to support groupBy and sub-selects #32688

merged 4 commits into from
May 5, 2020

Conversation

hotmeteor
Copy link
Contributor

This PR patches a change in 7.10.0 that updated pagination count for group by queries. This change broke functionality when a grouped query was also using sub-selects.

The changes here update the method to use an ad hoc aggregate rather than the existing count method, which strips the necessary select and columns bindings.

@taylorotwell taylorotwell merged commit dafa920 into laravel:7.x May 5, 2020
@GrahamCampbell GrahamCampbell changed the title Update runPaginationCountQuery to support groupBy and sub-selects [7.x] Update runPaginationCountQuery to support groupBy and sub-selects May 6, 2020
bennothommo added a commit to wintercms/storm that referenced this pull request Jun 17, 2021
Refs: laravel/framework#32688

Co-authored-by: Marc Jauvin <marc.jauvin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants