summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-07 14:13:44 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-07 14:13:44 +0400
commite978efd96b9a8146ba2c80a1f3aea755568ac73a (patch)
treeacc499d0c89559db0f9fed5b6d184514f216530c /sql/item_windowfunc.h
parenta8def12e8a65cee915029de46d6e37b338ee9289 (diff)
downloadmariadb-git-e978efd96b9a8146ba2c80a1f3aea755568ac73a.tar.gz
MDEV-20273 Add class Item_sum_min_max
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index 144deb18d8c..37376501d1f 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -292,21 +292,18 @@ class Item_sum_dense_rank: public Item_sum_int
{ return get_item_copy<Item_sum_dense_rank>(thd, this); }
};
-class Item_sum_hybrid_simple : public Item_sum,
- public Type_handler_hybrid_field_type
+class Item_sum_hybrid_simple : public Item_sum_hybrid
{
public:
Item_sum_hybrid_simple(THD *thd, Item *arg):
- Item_sum(thd, arg),
- Type_handler_hybrid_field_type(&type_handler_longlong),
+ Item_sum_hybrid(thd, arg),
value(NULL)
- { collation.set(&my_charset_bin); }
+ { }
Item_sum_hybrid_simple(THD *thd, Item *arg1, Item *arg2):
- Item_sum(thd, arg1, arg2),
- Type_handler_hybrid_field_type(&type_handler_longlong),
+ Item_sum_hybrid(thd, arg1, arg2),
value(NULL)
- { collation.set(&my_charset_bin); }
+ { }
bool add();
bool fix_fields(THD *, Item **);
@@ -317,8 +314,6 @@ class Item_sum_hybrid_simple : public Item_sum,
void reset_field();
String *val_str(String *);
bool get_date(MYSQL_TIME *ltime, ulonglong fuzzydate);
- const Type_handler *type_handler() const
- { return Type_handler_hybrid_field_type::type_handler(); }
void update_field();
Field *create_tmp_field(bool group, TABLE *table);
void clear()