diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-14 17:13:37 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-07-14 22:59:19 +0300 |
commit | 8a0944080c950349aaf7c81bc8f8c63b262f98eb (patch) | |
tree | 660faff324d2f66e57e2800155196739bf972dc1 /sql/sql_lex.h | |
parent | f3f23b5c4bdc669ad0af4a1c79bd70c40ed9c594 (diff) | |
parent | 07e89bf7d15ba9e9a3b21d087c20d687446b2ff7 (diff) | |
download | mariadb-git-8a0944080c950349aaf7c81bc8f8c63b262f98eb.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index ea2ca10a444..8b8a55e0c96 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -1063,6 +1063,14 @@ public: converted to a GROUP BY involving BIT fields. */ uint hidden_bit_fields; + /* + Number of fields used in the definition of all the windows functions. + This includes: + 1) Fields in the arguments + 2) Fields in the PARTITION BY clause + 3) Fields in the ORDER BY clause + */ + uint fields_in_window_functions; enum_parsing_place parsing_place; /* where we are parsing expression */ enum_parsing_place context_analysis_place; /* where we are in prepare */ bool with_sum_func; /* sum function indicator */ @@ -1385,10 +1393,7 @@ public: SQL_I_List<ORDER> win_order_list, Window_frame *win_frame); List<Item_window_func> window_funcs; - bool add_window_func(Item_window_func *win_func) - { - return window_funcs.push_back(win_func); - } + bool add_window_func(Item_window_func *win_func); bool have_window_funcs() const { return (window_funcs.elements !=0); } ORDER *find_common_window_func_partition_fields(THD *thd); |