Skip to content

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