diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-06 20:44:05 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-06 20:44:05 +0400 |
commit | c898de84b78482932fd5110e4bc40229f109d424 (patch) | |
tree | 0e09ff8bd83ed6ca888b2ed30aa0da5d27c32a22 /sql/item_windowfunc.h | |
parent | 46239f29c6e624da3b516a25433b5dfb97fe12ea (diff) | |
download | mariadb-git-c898de84b78482932fd5110e4bc40229f109d424.tar.gz |
MDEV-12714 Determine Item::field_type() from Item::type_handler()
Diffstat (limited to 'sql/item_windowfunc.h')
-rw-r--r-- | sql/item_windowfunc.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/item_windowfunc.h b/sql/item_windowfunc.h index ab480539583..49f8b51ab1c 100644 --- a/sql/item_windowfunc.h +++ b/sql/item_windowfunc.h @@ -307,8 +307,6 @@ class Item_sum_hybrid_simple : public Item_sum, { return Type_handler_hybrid_field_type::result_type(); } enum Item_result cmp_type() const { return Type_handler_hybrid_field_type::cmp_type(); } - enum enum_field_types field_type() const - { return Type_handler_hybrid_field_type::field_type(); } const Type_handler *type_handler() const { return Type_handler_hybrid_field_type::type_handler(); } void update_field(); @@ -514,7 +512,6 @@ class Item_sum_percent_rank: public Item_sum_window_with_row_count } bool add(); enum Item_result result_type () const { return REAL_RESULT; } - enum_field_types field_type() const { return MYSQL_TYPE_DOUBLE; } const Type_handler *type_handler() const { return &type_handler_double; } void fix_length_and_dec() @@ -601,7 +598,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; } - enum_field_types field_type() const { return MYSQL_TYPE_DOUBLE; } const Type_handler *type_handler() const { return &type_handler_double; } void fix_length_and_dec() @@ -679,7 +675,6 @@ class Item_sum_ntile : public Item_sum_window_with_row_count void update_field() {} enum Item_result result_type () const { return INT_RESULT; } - enum_field_types field_type() const { return MYSQL_TYPE_LONGLONG; } const Type_handler *type_handler() const { return &type_handler_longlong; } Item *get_copy(THD *thd, MEM_ROOT *mem_root) @@ -805,10 +800,6 @@ public: */ void setup_partition_border_check(THD *thd); - enum_field_types field_type() const - { - return ((Item_sum *) args[0])->field_type(); - } const Type_handler *type_handler() const { return ((Item_sum *) args[0])->type_handler(); |