diff options
author | Igor Babaev <igor@askmonty.org> | 2016-09-29 01:15:00 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2016-09-30 17:40:40 -0700 |
commit | 903f34c7a99d15ca1b861a7dd4848ebed9891c44 (patch) | |
tree | 80e25801f2ae4bc53bf1705c6360d8062a14c702 /sql/item_windowfunc.cc | |
parent | 6aeaebd8cfa3ce3cf7037a282a77ca4c6cdb7e16 (diff) | |
download | mariadb-git-903f34c7a99d15ca1b861a7dd4848ebed9891c44.tar.gz |
Fixed bug mdev-10868.
There was no implementation of the virtual method print()
for the Item_window_func class. As a result for a view
containing window function an invalid view definition could
be written in the frm file. When a query that refers to
this view was executed a syntax error was reported.
Diffstat (limited to 'sql/item_windowfunc.cc')
-rw-r--r-- | sql/item_windowfunc.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item_windowfunc.cc b/sql/item_windowfunc.cc index ccdbdd3294f..a13967eaaad 100644 --- a/sql/item_windowfunc.cc +++ b/sql/item_windowfunc.cc @@ -446,3 +446,10 @@ void Item_sum_hybrid_simple::update_field() { DBUG_ASSERT(0); } + +void Item_window_func::print(String *str, enum_query_type query_type) +{ + window_func()->print(str, query_type); + str->append(" over "); + window_spec->print(str, query_type); +} |