diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2018-10-15 09:35:19 -0700 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2018-10-16 08:11:26 -0700 |
commit | 97a37edc970f8619ffd23394b61fe310d705d0ef (patch) | |
tree | 8dad954c1cc548bde5be847599654ba29c39c0c2 /sql/item_windowfunc.h | |
parent | 103b1df510599255f464de5c85a8b0ab1bb1283e (diff) | |
download | mariadb-git-97a37edc970f8619ffd23394b61fe310d705d0ef.tar.gz |
MDEV-17137: Syntax errors with VIEW using MEDIAN
The syntax error happened because we had not implemented a different print for
percentile functions. The syntax is a bit different when we use percentile functions
as window functions in comparision to normal window functions.
Implemented a seperate print function for percentile functions
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index b3e23748246..9ba60c3956d 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -1155,6 +1155,7 @@ private: */ bool force_return_blank; bool read_value_from_result_field; + void print_for_percentile_functions(String *str, enum_query_type query_type); public: void set_phase_to_initial() |