mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3986: [Paginator] Invalid generated query with usage of output walkers #4866
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 8, 2015).
Originally assigned to: @lcobucci on GitHub.
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.
@doctrinebot commented on GitHub (Nov 15, 2015):
Comment created by egeloen:
For the record, it seems related to http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmodeonly_full_groupby 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.
@mikemix commented on GitHub (May 2, 2016):
Still not working for MySQL 5.7 :(
@WubbleWobble commented on GitHub (Jun 9, 2016):
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.
@skonsoft commented on GitHub (Sep 24, 2016):
Hello,
Any news ?
Thank you
@doctoome commented on GitHub (Oct 9, 2016):
Yes, any news ?
@Ocramius commented on GitHub (Nov 3, 2016):
See #5622 #5973
@binarious commented on GitHub (Sep 6, 2017):
Is this fixed via https://github.com/doctrine/doctrine2/pull/6143?
@lcobucci commented on GitHub (Nov 26, 2017):
@binarious it should be, but we don't have a stable release for
v2.6.0so you'll have to usev2.6.x-devto use this feature for now.@lcobucci commented on GitHub (Nov 26, 2017):
I'll close this issue since it was handled via #6143, please reopen if you feel it's needed.