diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-08-01 16:51:12 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-08-01 16:51:12 +0200 |
commit | 4b4de01fae3b2c8ff27e733da3e2e03e90fbbaed (patch) | |
tree | d3e974744cad9f159b17fe544b95ea910971057d /sql/item_func.h | |
parent | d8a9bb4585fae93240ca0f58f64294b85bab5892 (diff) | |
parent | 681fbcaf9255e1aa9f4ef458f8ef69f1a31eade2 (diff) | |
download | mariadb-git-4b4de01fae3b2c8ff27e733da3e2e03e90fbbaed.tar.gz |
5.3 merge
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 0d9901d90b2..49966964fbb 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -146,7 +146,6 @@ public: virtual void print(String *str, enum_query_type query_type); void print_op(String *str, enum_query_type query_type); void print_args(String *str, uint from, enum_query_type query_type); - virtual void fix_num_length_and_dec(); void count_only_length(Item **item, uint nitems); void count_real_length(); void count_decimal_length(); @@ -533,9 +532,6 @@ public: Item_func_numhybrid(List<Item> &list) :Item_func_hybrid_result_type(list) { } - void fix_length_and_dec(); - void fix_num_length_and_dec(); - virtual void find_num_type()= 0; /* To be called from fix_length_and_dec */ String *str_op(String *str) { DBUG_ASSERT(0); return 0; } bool date_op(MYSQL_TIME *ltime, uint fuzzydate) { DBUG_ASSERT(0); return true; } }; @@ -547,9 +543,7 @@ class Item_func_num1: public Item_func_numhybrid public: Item_func_num1(Item *a) :Item_func_numhybrid(a) {} Item_func_num1(Item *a, Item *b) :Item_func_numhybrid(a, b) {} - - void fix_num_length_and_dec(); - void find_num_type(); + void fix_length_and_dec(); }; @@ -565,7 +559,7 @@ class Item_num_op :public Item_func_numhybrid print_op(str, query_type); } - void find_num_type(); + void fix_length_and_dec(); }; @@ -785,7 +779,6 @@ public: const char *func_name() const { return "-"; } enum Functype functype() const { return NEG_FUNC; } void fix_length_and_dec(); - void fix_num_length_and_dec(); uint decimal_precision() const { return args[0]->decimal_precision(); } bool check_partition_func_processor(uchar *int_arg) {return FALSE;} bool check_vcol_func_processor(uchar *int_arg) { return FALSE;} @@ -952,8 +945,7 @@ class Item_func_int_val :public Item_func_num1 { public: Item_func_int_val(Item *a) :Item_func_num1(a) {} - void fix_num_length_and_dec(); - void find_num_type(); + void fix_length_and_dec(); }; @@ -1363,6 +1355,7 @@ public: fixed= 1; return res; } + void fix_num_length_and_dec(); void update_used_tables() { /* @@ -1476,7 +1469,7 @@ public: my_decimal *val_decimal(my_decimal *); String *val_str(String *str); enum Item_result result_type () const { return DECIMAL_RESULT; } - void fix_length_and_dec(); + void fix_length_and_dec() { fix_num_length_and_dec(); } }; |