-
Notifications
You must be signed in to change notification settings - Fork 344
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
Incorect count group by #322
Comments
Info: The |
still waiting |
Temp fix for this would be something like this: `
` This is the same query as I have for the pagination but it does a count instead. Then I use setHint() to give it the actual count. |
Hello sorry for the late reponse, I was not able to reproduce your issues. Could you please provide the queries generated and your database version? |
We have the same issue (maybe not). This is generated SQL with parameters:
Second
Third
First query get value 490 and we have 41 pages (12 per page), but real count is 97 and 9th page have 1 item, 10 and other to 41 are empty. So the problem is actually in the First query
If we use DISTINCT in it, it return correct value.
Sorry for big queries |
Have the same issue on |
Fixed it by adding |
@laurentiustroia does the fix proposed by @Millon15 works for you? |
Hi @garak I was opened this issue long time ago, I don't remember what work around I was did on that time, so you can close this from my perspective if anyone else not have this problem anymore |
I have follower configuration:
and follower query:
but i have 10 result after group by and he give me totalCount is it 11 , but 11 is without groupBy. How can fix it ?
The text was updated successfully, but these errors were encountered: