From 305dd8e5fba804d8006d34ca7cb05bec5a3b45e6 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 21 Nov 2014 20:45:18 +0300 Subject: Better comments --- sql/sql_select.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/sql_select.h b/sql/sql_select.h index 41ee2cb51d2..cf3e1b353ab 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -982,7 +982,13 @@ public: */ uint top_join_tab_count; uint send_group_parts; - bool group; /**< If query contains GROUP BY clause */ + /* + True if the query has GROUP BY. + (that is, if group_by != NULL. when DISTINCT is converted into GROUP BY, it + will set this, too. It is not clear why we need a separate var from + group_list) + */ + bool group; bool need_distinct; /** -- cgit v1.2.1