summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-03-23 16:09:58 -0700
committerIgor Babaev <igor@askmonty.org>2016-03-23 16:09:58 -0700
commit82cb35be11c566e4675bd14393cfa7157a280b93 (patch)
tree4f00940bf5523bf749d3b372ee0286de6143abb4 /sql/sql_lex.cc
parenta74e8d36dde934b72b230b6d50b89f8e1ec034ae (diff)
downloadmariadb-git-82cb35be11c566e4675bd14393cfa7157a280b93.tar.gz
Changed the base class for Item_window_func from Item_result_field to
Item_func_or_sum. Implemented method update_used_tables for class Item_findow_func. Added the flag Item::with_window_func. Made sure that window functions could be used only in SELECT list and ORDER BY clause. Added test cases that checked different illegal placements of window functions.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index deeb757bdf3..5bfa062a628 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1935,6 +1935,7 @@ void st_select_lex::init_query()
m_non_agg_field_used= false;
m_agg_func_used= false;
window_specs.empty();
+ window_funcs.empty();
}
void st_select_lex::init_select()