Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

MySQL 5.7 incompatibility ONLY_FULL_GROUP_BY #684

Open
ValentinMerlet opened this issue Feb 8, 2016 · 1 comment
Open

MySQL 5.7 incompatibility ONLY_FULL_GROUP_BY #684

ValentinMerlet opened this issue Feb 8, 2016 · 1 comment

Comments

@ValentinMerlet
Copy link

MySQL 5.7.5 came with ONLY_FULL_GROUP_BY SQL Mode which seems to implose my little bamboo 😭

See below :
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression # 46 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'bamboo.i7_.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
The only workaround I've found for now was to remove globally the ONLY_FULL_GROUP_BY SQL Mode :

mysql -uroot

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';

But, changing sql_modes globally seems to be ugly, any ideas on how to fix it without needing to downgrade MySQL ?

To reproduce the issue, just access the HP after creating a new project.

@mmoreram
Copy link
Contributor

mmoreram commented Feb 9, 2016

@ValentinMerlet oups...

This error is not related to Elcodi itself but to Doctrine. Elcodi is built on top of Doctrine, so we should check how this new MySQL version breaks Doctrine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants