diff options
author | konstantin@mysql.com <> | 2003-11-20 21:21:56 +0300 |
---|---|---|
committer | konstantin@mysql.com <> | 2003-11-20 21:21:56 +0300 |
commit | dd287a4cdf4b8937ce428678fa096134a5ae8a88 (patch) | |
tree | 649da6a20044c08d852086f0effd16de983e15d9 | |
parent | 707e7e89929e5cb4d40046af4a09ba272dcd2671 (diff) | |
download | mariadb-git-dd287a4cdf4b8937ce428678fa096134a5ae8a88.tar.gz |
added comments to simple_order, simple_group, no_order, skip_sort_order
-rw-r--r-- | sql/sql_select.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 740b0470fdc..7f8dfd219d0 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -208,8 +208,21 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds, { TABLE *tmp_table; int error, tmp_error; - bool need_tmp,hidden_group_fields; - bool simple_order,simple_group,no_order, skip_sort_order; + bool need_tmp; + bool hidden_group_fields; + /* + simple_xxxxx is set if ORDER/GROUP BY doesn't include any references + to other tables than the first non-constant table in the JOIN. + It's also set if ORDER/GROUP BY is empty. + */ + bool simple_order, simple_group; + /* + Is set only in case if we have a GROUP BY clause + and no ORDER BY after constant elimination of 'order'. + */ + bool no_order; + /* Is set if we have a GROUP BY and we have ORDER BY on a constant. */ + bool skip_sort_order; ha_rows select_limit; Item::cond_result cond_value; SQL_SELECT *select; |