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 with mysql 5.7 running with sql_mode=only_full_group_by (temporary workaround) #20

Closed
stripthis opened this Issue Sep 21, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@stripthis
Member

stripthis commented Sep 21, 2016

Currently passbolt permissions views are not SQL99 compliant and triggering the following errors when mysql sql_mode contains only_full_group_by (a default setting since 5.7):

[PDOException] SQLSTATE[42000]: Syntax error or access violation: 1140 In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'UserResourcePermission.permission_id'; this is incompat\
ible with sql_mode=only_full_group_by

In order to run passbolt on mysql5.7 you will still need to disable the sql_mode only_full_group_by with for example the following command:

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

This is a temporary workaround, we’ll try to address this in a future release.
ref. PASSBOLT-1646

@cedricalfonsi

This comment has been minimized.

Show comment
Hide comment
@cedricalfonsi

cedricalfonsi Feb 16, 2017

Member

Fixed with v1.4.0

Member

cedricalfonsi commented Feb 16, 2017

Fixed with v1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment