summaryrefslogtreecommitdiff
path: root/sql/item_windowfunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-05-07 19:29:23 +0400
committerAlexander Barkov <bar@mariadb.org>2017-05-07 19:29:23 +0400
commitda63db1e3b174209a4de1fe8e66e9bbe9ac3b11d (patch)
tree370a1a4185a509081ca87b5aa4df75a1141cdc5b /sql/item_windowfunc.h
parent02ada41744382fea11621a5a8094cbbea06c9487 (diff)
downloadmariadb-git-da63db1e3b174209a4de1fe8e66e9bbe9ac3b11d.tar.gz
MDEV-12719 Determine Item::result_type() from Item::type_handler()
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r--sql/item_windowfunc.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h
index 5e3a28ffade..77cbd556e60 100644
--- a/sql/item_windowfunc.h
+++ b/sql/item_windowfunc.h
@@ -303,8 +303,6 @@ class Item_sum_hybrid_simple : public Item_sum,
my_decimal *val_decimal(my_decimal *);
void reset_field();
String *val_str(String *);
- enum Item_result result_type() const
- { return Type_handler_hybrid_field_type::result_type(); }
const Type_handler *type_handler() const
{ return Type_handler_hybrid_field_type::type_handler(); }
void update_field();
@@ -509,7 +507,6 @@ class Item_sum_percent_rank: public Item_sum_window_with_row_count
row_number= 0;
}
bool add();
- enum Item_result result_type () const { return REAL_RESULT; }
const Type_handler *type_handler() const { return &type_handler_double; }
void fix_length_and_dec()
@@ -595,7 +592,6 @@ class Item_sum_cume_dist: public Item_sum_window_with_row_count
}
void update_field() {}
- enum Item_result result_type () const { return REAL_RESULT; }
const Type_handler *type_handler() const { return &type_handler_double; }
void fix_length_and_dec()
@@ -672,7 +668,6 @@ class Item_sum_ntile : public Item_sum_window_with_row_count
void update_field() {}
- enum Item_result result_type () const { return INT_RESULT; }
const Type_handler *type_handler() const { return &type_handler_longlong; }
Item *get_copy(THD *thd, MEM_ROOT *mem_root)