summaryrefslogtreecommitdiff
path: root/sql/item_buff.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2016-03-13 03:34:31 +0300
committerSergei Petrunia <psergey@askmonty.org>2016-03-13 03:34:31 +0300
commite859c2dbb8f436294f7af679ac6931ecfb58c53e (patch)
tree5b13029446c9622ef6bf23d9faaff07e787591b6 /sql/item_buff.cc
parent879731aa84268f8e4afc76c62955e845249c3de5 (diff)
downloadmariadb-git-e859c2dbb8f436294f7af679ac6931ecfb58c53e.tar.gz
MDEV-9676: RANGE-type frames for window functions
Add support for "RANGE n PRECEDING|FOLLOWING" frame bounds. - n is currently limited to whatever Item and Item_sum_plus/minus can handle (i.e. no DATETIME intervals). - Didn't check NULL value handling yet.
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r--sql/item_buff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc
index 3798aad06f0..488eb52fb77 100644
--- a/sql/item_buff.cc
+++ b/sql/item_buff.cc
@@ -71,7 +71,7 @@ Cached_item::~Cached_item() {}
*/
Cached_item_str::Cached_item_str(THD *thd, Item *arg)
- :item(arg),
+ :Cached_item_item(arg),
value_max_length(MY_MIN(arg->max_length, thd->variables.max_sort_length)),
value(value_max_length)
{}
@@ -217,7 +217,7 @@ int Cached_item_field::cmp_read_only()
Cached_item_decimal::Cached_item_decimal(Item *it)
- :item(it)
+ :Cached_item_item(it)
{
my_decimal_set_zero(&value);
}