diff options
author | mskold@mysql.com <> | 2005-02-21 16:13:29 +0100 |
---|---|---|
committer | mskold@mysql.com <> | 2005-02-21 16:13:29 +0100 |
commit | b3d3f73753721331768fd2edf7c9198fe54f73f3 (patch) | |
tree | e21abe93ba69de9e7d150d165a66598360eb6cbe /sql/item_func.h | |
parent | ebd40e4835f5250060fffaa4499b0a6b6557a08d (diff) | |
parent | 5135d05ab1a8746e41ef5c66b8602109bf84bdf4 (diff) | |
download | mariadb-git-b3d3f73753721331768fd2edf7c9198fe54f73f3.tar.gz |
Merge
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 783e54ba144..b3fa73bb15b 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -360,18 +360,15 @@ public: }; -class Item_func_int_div :public Item_func +class Item_func_int_div :public Item_int_func { public: - Item_func_int_div(Item *a,Item *b) :Item_func(a,b) + Item_func_int_div(Item *a,Item *b) :Item_int_func(a,b) {} - double val_real() { DBUG_ASSERT(fixed == 1); return (double) val_int(); } longlong val_int(); - String *val_str(String*str); const char *func_name() const { return "DIV"; } void fix_length_and_dec(); void print(String *str) { print_op(str); } - enum Item_result result_type () const { return INT_RESULT; } }; @@ -387,23 +384,15 @@ public: }; -class Item_func_signproc :public Item_func_num1 -{ -public: - Item_func_signproc(Item *a) :Item_func_num1(a) {} - Item_func_signproc(Item *a, Item *b) :Item_func_num1(a, b) {} - void fix_length_and_dec(); -}; - - -class Item_func_neg :public Item_func_signproc +class Item_func_neg :public Item_func_num1 { public: - Item_func_neg(Item *a) :Item_func_signproc(a) {} + Item_func_neg(Item *a) :Item_func_num1(a) {} double real_op(); longlong int_op(); my_decimal *decimal_op(my_decimal *); const char *func_name() const { return "-"; } + void fix_length_and_dec(); void fix_num_length_and_dec(); }; |