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

[5.6] Set pagination count columns for eloquent builder #23214

Closed
wants to merge 1 commit into from
Closed

[5.6] Set pagination count columns for eloquent builder #23214

wants to merge 1 commit into from

Conversation

vigneshgurusamy
Copy link
Contributor

This PR will make use of selected columns for pagination count in eloquent builder.

@jmarcher
Copy link
Contributor

count(*) is prefered in this case because count(column) will not include nulls

@vmeyyappan
Copy link

@jmarcher, it is columns and not column. Even I face the same issue @vigneshgurusamy mentioned, while doing a distinct, the query runs fine, however, the pagination query gets full set count instead of distinct. Could you please consider this?

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.

4 participants