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

MySQL 5.7 incompatibility ONLY_FULL_GROUP_BY #684

@ValentinMerlet

Description

@ValentinMerlet

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions