-
Notifications
You must be signed in to change notification settings - Fork 344
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
Issue on Join order and MySQL 5.7+ #395
Comments
+1, this paginator component is manipulating the query in a way that is not compatible with MySQL 5.7+. Example situation: Entities "Product" and "Taxonomy" are linked by bridge entity "TaxonomyToProduct", because a custom sort order is needed. This sort order is an integer inside the "TaxonomyToProduct". Then when it comes to displaying products in a taxonomy one would use the following repository function:
This works fine when being called by a controller. However the paginator is doing some DISTINCT stuff around the query preventing it from working with the sort order. I've also tried sorting products by their created date via SQL query from repository function's
SQL query after the paginator fiddled with it:
For some reason the paginator adding an extra |
Oh yeah -- As per #358 I've also tried setting options "distinct" to false, and also removed the We've also always been using
|
Related to #477 . |
anything new on this ? |
got this bug on mysql but on MariaDb ver 10.1.38 it works well |
still open ... |
I'm using knp paginator
And we have order issue about join query
we get error like this:
then we use this parameter:
'wrap-queries' => true
After that we get this error:
I am using MySQL 5.7.10
The text was updated successfully, but these errors were encountered: