Fix Only_full_group_by_sql_error
·283 words·2 mins
Recently, I encountered sql state 42000 error in a spring boot application while moving from MySQL version 5.6 to 8.0. After inspecting stack trace and some googling, I got to know that few default configurations have changed in MySQL 8.0 (as expected 😃 ).
This caused our poorly written queries to fail during migration.
Background # Lets look at sample query using spring-data jpa to gather some analytics by aggregating data about a customer ordering products