diff options
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(); |
