GROUP BY clause and contains nonaggregated column and incompatible with sql_mode=only_full_group_by

Created on 3 December 2019, over 4 years ago
Updated 27 May 2023, about 1 year ago

I am try to add GROUP BY and MAX aggregation function with multiple joins in PDO query but drupal core side getting sql_mode=only_full_group_by error issue with multiple fields group by.
Error:
"GROUP BY clause and contains nonaggregated column 'dbname.field_name' which is not functionally dependent on columns in GROUP BY clause. this is incompatible with sql_mode=only_full_group_by issue."

🐛 Bug report
Status

Closed: works as designed

Version

10.0

Component
MySQL driver 

Last updated 22 days ago

Created by

🇮🇳India gaganshukla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024