summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2016-09-29 01:15:00 -0700
committerIgor Babaev <igor@askmonty.org>2016-09-30 17:40:40 -0700
commit903f34c7a99d15ca1b861a7dd4848ebed9891c44 (patch)
tree80e25801f2ae4bc53bf1705c6360d8062a14c702 /sql/item_windowfunc.h
parent6aeaebd8cfa3ce3cf7037a282a77ca4c6cdb7e16 (diff)
downloadmariadb-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.h')
-rw-r--r--sql/item_windowfunc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index 5b368e2cdbc..15e5c9a7c5b 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -963,7 +963,9 @@ public:
bool resolve_window_name(THD *thd);
- Item *get_copy(THD *thd, MEM_ROOT *mem_root) { return 0; }
+ void print(String *str, enum_query_type query_type);
+
+ Item *get_copy(THD *thd, MEM_ROOT *mem_root) { return 0; }
};