diff options
-rw-r--r-- | sql/sql_select.h | 8 |
1 files changed, 7 insertions, 1 deletions
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; /** |