Skip to content
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

MySQL 5.7.x only_full_group_by Error #760

Closed
vytux-com opened this issue Nov 1, 2015 · 1 comment
Closed

MySQL 5.7.x only_full_group_by Error #760

vytux-com opened this issue Nov 1, 2015 · 1 comment

Comments

@vytux-com
Copy link
Contributor

After upgrading my server to MySQL 5.7 builds I am getting some errors in webtrees code and also some of my modules. Here is one example:

#0 /app/Statement.php:82 PDOException("SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'vytux_webtrees.wt_dates.d_type' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")
#1 /app/Statement.php:129 execute()
#2 /app/Functions/FunctionsDb.php:952 fetchAll()
#3 /app/Module/ResearchTaskModule.php:114 getCalendarEvents()
#4 /var/www/webtrees/webtrees-1.7.1/index.php:132 getBlock()
@fisharebest
Copy link
Owner

Looking at this SQL, I am not sure we need the "GROUP BY". We already group the results in PHP.

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

No branches or pull requests

2 participants