-
Notifications
You must be signed in to change notification settings - Fork 75
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
Incompatibility with MySQL 5.7 (Ubuntu 16.04) #26
Comments
Yeah this is also sth that happen on Doctrine 2. |
not that hard: I've already sent a couple of patch to zikula/doctrine1 on november 2015 (see zikula/doctrine1#7 and zikula/doctrine1#8), I can recreate the PR on LExpress/doctrine1 if you wish |
@endelwar I was actually talking about a change in Doctrine to comply with the ONLY_FULL_GROUP_BY restriction, but I guess setting the sql-mode from Doctrine can be another workaround. |
A rewrite of all queries that incur in ONLY_FULL_GROUP_BY restriction is a (too big?) big refactor for doctrine1. |
I've just submitted PR #29 for setting sql mode |
In mysql 5.7 it's required to have the order by fields to be present in the select statement when using DISTINCT. This is because the ONLY_FULL_GROUP_BY setting is turned on by default. I couldn't find where to fix this but it seems to be related to the sfPager or sfDoctrinePager, and I'm sure there are other places in the code this could happen.
Here's part of the trace of error:
As a workaround I added
to the
my.cnf
file and it solves the issue, but I guess that's not a very permanent solution.The text was updated successfully, but these errors were encountered: