-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
DDC-3986: [Paginator] Invalid generated query with usage of output walkers #4846
Comments
Comment created by egeloen: For the record, it seems related to http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode*only_full_group*by which is now enabled by default and break the paginator. Disabling it "fix" the issue but then, mysql can return invalid data according to this new mode. |
Still not working for MySQL 5.7 :( |
Not tested and no guarantees of completeness, but a quick fix looks like so:
The two lines added (the ones that mention $orderByFields) add the order-by fields mentioned in the subquery into the select on the outer query as per MySQL's complaint. |
Hello, Any news ? Thank you |
Yes, any news ? |
Is this fixed via #6143? |
@binarious it should be, but we don't have a stable release for |
I'll close this issue since it was handled via #6143, please reopen if you feel it's needed. |
Jira issue originally created by user egeloen:
Hey!
I have some troube when I use the paginator with the output walkers enabled on MySQL 5.7. Here is my query that I pass to the paginator:
It uses some geospatial feature but the point is not here. When using the output walkers, the generated query is the following:
Then, Mysql complains the following:
Am I missing something or is it a bug since when I disable the output walkers, the query is executable.
The text was updated successfully, but these errors were encountered: