-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for compatibility with MySQL 5.7+ and PostgreSQL
getUniqueResources, getUniqueTags, and getUniqueUsers was failing due to mySQL5.7 compatibility issues. The error being thrown by mySQL was: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by To fix, we have to either turn off the only_full_group_by option or specifically select the columns that are used instead of selecting *. See: https://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html for more info. PostgreSQL was failing due to fields being present in ORDER but missing from GROUP BY. This has also been corrected.
- Loading branch information
1 parent
32ed597
commit ec63614
Showing
1 changed file
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters