-
Notifications
You must be signed in to change notification settings - Fork 346
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
MySQL 5.7 - DISTINCT Pagination Query and GROUP BY #542
Comments
I think I have solved this problem using paginator with, distinct = false and and wrap-queries = true
But I am not quite sure. In the config there is a note, that distinct is useful, especially with Group by
I would be grateful for any help. Best Regards |
Hello, You can configure your mysql server to disable the SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); Also, you can set this change in your
|
got this bug on mysql but on MariaDb ver 10.1.38 it works well |
And can we, uh, maybe get a proper fix anyway? |
@Amunak feel free to open a Pull Request |
I have an example configure .env |
As soon as I use Group By, I get an error
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of
SELECT list is not in GROUP BY clause and contains nonaggregated column
'symfony.s0_.id' which is not functionally dependent on columns in
GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
I have installed
and
The full error message is
Is there a work around for "SELECT DISTINCT s0_.id AS id_0" when using group by?
Thank you & Best Regards
The text was updated successfully, but these errors were encountered: