1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
Igor Babaev
2016-09-29 01:15:00 -07:00
parent 6aeaebd8cf
commit 903f34c7a9
6 changed files with 253 additions and 2 deletions

View File

@ -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