mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
paginator incompatibility with MySQL 5.7 #5144
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 @2binfree on GitHub (Jun 8, 2016).
Originally assigned to: @2binfree on GitHub.
i think its related to MySQL 5.7 change, can't have order by that isn't in select for aggregations, group or distincts included.
this code don't work on Mysql 5.7 :
Exception:
you must set some parameters to your mysql server to fix this problem :
SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';@mvrhov commented on GitHub (Jun 8, 2016):
This has already been reported.
@teohhanhui commented on GitHub (Jul 21, 2016):
Duplicate of #4846
@cordoval commented on GitHub (Jan 26, 2018):
after running the sql you indicated it works.