Files
tidb/executor
Du Chuan a9360655e8 plan: fix a bug when 'only_full_group_by' is set in sql_mode (#6734)
when 'only_full_group_by' is set in sql_mode, raise error for non-aggregated column in query without GROUP BY.

mysql> create table t(a bigint, b bigint, c bigint);                                                                                           Query OK, 0 rows affected (0.02 sec)

mysql> select a, max(b) from t;
ERROR 1140 (42000): In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'dc_test.t.a'; this is incompatible with sql_mode=only_full_group_by
2018-06-25 17:03:00 +08:00
..
2018-05-05 22:36:54 +08:00
2018-05-05 22:36:54 +08:00
2018-06-01 10:22:02 +08:00
2018-04-03 20:00:30 +08:00
2018-04-03 20:00:30 +08:00
2018-04-26 17:40:10 +08:00
2018-04-08 22:28:25 +08:00
2018-06-01 10:22:02 +08:00
2018-06-25 11:23:33 +08:00
2018-06-11 15:43:14 +08:00
2018-05-14 13:43:19 +08:00
2018-06-01 10:22:02 +08:00
2018-06-01 10:22:02 +08:00