-
Notifications
You must be signed in to change notification settings - Fork 7
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
Queries in FormDataRepository failing when sql_mode=only_full_group_by is enabled #12
Comments
@samsauter, thanks for the issue. Sadly your approach won't work. When grouping by anything, the grouping has no effect anymore. I currently try to get my mariaDB into that mode. |
@daniellienert Oh, of course … I did not check with multiple sites or just different forms and look and the actual results. I just wanted the query to not throw an error anymore. Thank you for looking into it! |
Any plans if and when this will be fixed @daniellienert? |
Is there a known workaround @daniellienert or @samsauter? |
Looks like we need to reopen this bug @daniellienert @samsauter 🙈 |
May someone reopen this Bug @daniellienert @samsauter? |
Sry, I don't have permissions to reopen. |
Hey Guys, I reopened the issue. I already tried to rewrite the queries but it seems that it is pretty hard to do using the doctrine persistence layer and we would need to completely rewrite it. Sadly I have to say, that we do not have this restrictions in any setup of our projects. But of course we appreciate any PR fixing the issue. |
Hello there,
the queries build in
FormDataRepository.php
which are using aGROUP BY
statement are causing exceptions to be thrown ifsql_mode=only_full_group_by
is configured (which seems to be the case in many server setups).SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'db-1.p0_.persistence_object_identifier' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
I added
addGroupBy()
statements for every column in this table to get it to work. There are two affected methods:Do you think this is fine? It seems like it, though.
The text was updated successfully, but these errors were encountered: