diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-06-28 19:39:49 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-07-05 15:40:25 +0300 |
commit | 4f93c732d5c286b655a1d6b434e7190800d89c8f (patch) | |
tree | bb42da001d0d20671643ee5b7871a2ca8bf687e7 /sql/item_row.cc | |
parent | e3d3147792ebe56cbdd8ab52f123bed36e85e00c (diff) | |
download | mariadb-git-4f93c732d5c286b655a1d6b434e7190800d89c8f.tar.gz |
MDEV-13189: Window functions crash when using INTERVAL
Interval function makes use of Item_row. Item_row did not correctly mark
with_window_func flag according to its arguments. Fix it by making
Item_row aware of this flag.
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r-- | sql/item_row.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc index ddbb0736d54..fc484f560ee 100644 --- a/sql/item_row.cc +++ b/sql/item_row.cc @@ -63,6 +63,7 @@ bool Item_row::fix_fields(THD *thd, Item **ref) } maybe_null|= item->maybe_null; with_sum_func= with_sum_func || item->with_sum_func; + with_window_func = with_window_func || item->with_window_func; with_field= with_field || item->with_field; with_subselect|= item->with_subselect; } |