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:
@ -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
|
||||
|
Reference in New Issue
Block a user