downvoted_commentors model query incompatible with mysql 5.7 defaults #529
Comments
thomasdziedzic
added a commit
to thomasdziedzic/lobsters
that referenced
this issue
Aug 15, 2018
Huh, yeah. I can see how I left it in as a I built up that query, but I can't see why it doesn't error. I'm using MariaDB 10.1.35 locally and we're on 10.0.34 in prod, fwiw. Thanks for catching and fixing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running mysql 5.7 with default configuration. I'm getting the following errors when running
bundle exec rake
.A better explanation of the error can be found here: https://stackoverflow.com/questions/34115174/error-related-to-only-full-group-by-when-executing-a-query-in-mysql
Finally, you can see the new configuration default in mysql 5.7 at https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html and searching for only_full_group_by
The query in question can be found at https://github.com/lobsters/lobsters/blob/master/app/models/downvoted_commenters.rb#L25-L39
The text was updated successfully, but these errors were encountered: