-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
only_full_group_by - mysqli_sql_exception #1055 - MySql 5.7.24 #3795
Comments
I don't really see an issue here. How would you like to deal with it? I'm closing this since it's not a bug, but feel free to continue the conversation. |
@perspolise This is a MySQL error (not CodeIgniter) and you already pointed out how to fix it - you should update your configuration. Could you elaborate on what is your idea to handle it better? |
@michalsn : In MySql |
@perspolise There are no changes since CI3 when it comes to handling this and personally I don't feel that adding some sort of support for this right now would be a good idea. If you really can't work around it I would suggest using Events::on('post_controller_constructor', function() {
db_connect()->simpleQuery("SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))");
}); |
I work with CI version
4.0.2
andMySql 5.7.24
:error is:
I know, I can fix this problem with disable
sql_mode=only_full_group_by
but, I think this method isn't good.The text was updated successfully, but these errors were encountered: