diff options
| author | Marko Mäkelä <marko.makela@mariadb.com> | 2023-02-16 13:34:45 +0200 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@mariadb.com> | 2023-02-16 13:34:45 +0200 |
| commit | 2e431ff7e69d9c887777cc597ccf5cfb446e13d8 (patch) | |
| tree | 98be0df7531bbe1f26e1f339cf18430556bca933 /sql/sql_select.h | |
| parent | 80b4fa54e1d38c8f90f6b94240c583aa9d4627b7 (diff) | |
| parent | 1fd00998390a7487e42f5e29472e99354159c8bc (diff) | |
| download | mariadb-git-2e431ff7e69d9c887777cc597ccf5cfb446e13d8.tar.gz | |
Merge 10.11 into 11.0
Diffstat (limited to 'sql/sql_select.h')
| -rw-r--r-- | sql/sql_select.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 4b64243e1c9..a45c4b8ffc2 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -777,7 +777,7 @@ public: virtual void mark_used() = 0; - virtual ~Semi_join_strategy_picker() {} + virtual ~Semi_join_strategy_picker() = default; }; @@ -1559,12 +1559,30 @@ public: (set in make_join_statistics()) */ bool impossible_where; - List<Item> all_fields; ///< to store all fields that used in query + + /* + All fields used in the query processing. + + Initially this is a list of fields from the query's SQL text. + + Then, ORDER/GROUP BY and Window Function code add columns that need to + be saved to be available in the post-group-by context. These extra columns + are added to the front, because this->all_fields points to the suffix of + this list. + */ + List<Item> all_fields; ///Above list changed to use temporary table List<Item> tmp_all_fields1, tmp_all_fields2, tmp_all_fields3; ///Part, shared with list above, emulate following list List<Item> tmp_fields_list1, tmp_fields_list2, tmp_fields_list3; - List<Item> &fields_list; ///< hold field list passed to mysql_select + + /* + The original field list as it was passed to mysql_select(). This refers + to select_lex->item_list. + CAUTION: this list is a suffix of this->all_fields list, that is, it shares + elements with that list! + */ + List<Item> &fields_list; List<Item> procedure_fields_list; int error; @@ -1960,7 +1978,7 @@ public: null_ptr(arg.null_ptr), err(arg.err) {} - virtual ~store_key() {} /** Not actually needed */ + virtual ~store_key() = default; /** Not actually needed */ virtual enum Type type() const=0; virtual const char *name() const=0; virtual bool store_key_is_const() { return false; } |
