diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-08-13 11:42:31 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-08-13 11:42:31 +0400 |
commit | 95cdc1ca5f006965e1b0e53a8567f6dbb87e01a1 (patch) | |
tree | 20f91c9dfc995df26363073737c34e8fe565bfe6 /sql/item_windowfunc.h | |
parent | ae1d17f52de045b37e0894e1e6684a911a43696c (diff) | |
parent | 43882e764d6867c6855b1ff057758a3f08b25c55 (diff) | |
download | mariadb-git-95cdc1ca5f006965e1b0e53a8567f6dbb87e01a1.tar.gz |
Merge commit '43882e764d6867c6855b1ff057758a3f08b25c55' into 10.4
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index ecac80d2aaa..5c63eb11547 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -291,24 +291,22 @@ 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 **); + bool fix_length_and_dec(); void setup_hybrid(THD *thd, Item *item); double val_real(); longlong val_int(); @@ -1103,17 +1101,6 @@ public: } } - void setting_handler_for_percentile_functions(Item_result rtype) const - { - switch (window_func()->sum_func()){ - case Item_sum::PERCENTILE_DISC_FUNC: - ((Item_sum_percentile_disc* ) window_func())->set_handler_by_cmp_type(rtype); - break; - default: - return; - } - } - bool check_result_type_of_order_item(); |