diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-09-11 22:46:11 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-09-19 15:14:10 +0300 |
commit | 454b9b1bdc7018d4e9dbe20440cbd6360eeee99e (patch) | |
tree | 54c7997670b435a4c59b811ec265238ab197661d /sql/share | |
parent | 33209350f7edef465f95e21c7e78cb9915b5b12a (diff) | |
download | mariadb-git-454b9b1bdc7018d4e9dbe20440cbd6360eeee99e.tar.gz |
MDEV-13774: Server Crash on Execute of SQL Statement
Window functions can not be used as arguments to aggregate functions, as
the aggregation happens before window function computation. Disallow
such constructs by returning an error.
In order to detect this case a change was needed in the base
Item_sum_xxx::fix_fields to propagate the with_window_func flag.
Item_func_group_concat requires the same change.
Diffstat (limited to 'sql/share')
-rw-r--r-- | sql/share/errmsg-utf8.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt index 1e63cedcba5..49b2c8b76ef 100644 --- a/sql/share/errmsg-utf8.txt +++ b/sql/share/errmsg-utf8.txt @@ -7740,4 +7740,5 @@ ER_RDB_TTL_DURATION_FORMAT ER_PER_INDEX_CF_DEPRECATED eng "The per-index column family option has been deprecated" - +ER_SUM_FUNC_WITH_WINDOW_FUNC_AS_ARG + eng "Window functions can not be used as arguments to group functions." |