summaryrefslogtreecommitdiff
path: root/sql/sql_window.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/sql_window.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/sql_window.h')
-rw-r--r--sql/sql_window.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_window.h b/sql/sql_window.h
index b94a1fc6dc4..6a56fc84392 100644
--- a/sql/sql_window.h
+++ b/sql/sql_window.h
@@ -45,6 +45,8 @@ public:
bool is_unbounded() { return offset == NULL; }
+ void print(String *str, enum_query_type query_type);
+
};
@@ -84,6 +86,8 @@ public:
bool check_frame_bounds();
+ void print(String *str, enum_query_type query_type);
+
};
class Window_spec : public Sql_alloc
@@ -125,6 +129,9 @@ class Window_spec : public Sql_alloc
{
*(partition_list->next)= NULL;
}
+
+ void print(String *str, enum_query_type query_type);
+
};
class Window_def : public Window_spec