summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-02-19 19:00:41 +0200
committerunknown <monty@mysql.com>2005-02-19 19:00:41 +0200
commit6c8ae9d65ec0fe3ee9c8349dd7f8cc7336c958dd (patch)
tree5a44a1612b30cc4765614c35e5172d824e16bb09 /sql/item_func.h
parent0bc02450a61180a5827ce4ab2a2b3538c1c1ce91 (diff)
parent64cc538bda5908e2688a1ba08a9ff156971a102b (diff)
downloadmariadb-git-6c8ae9d65ec0fe3ee9c8349dd7f8cc7336c958dd.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0 BUILD/SETUP.sh: Auto merged mysql-test/r/ps_6bdb.result: Auto merged sql/item.h: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/log_event.cc: Auto merged sql/my_decimal.cc: Auto merged sql/my_decimal.h: Auto merged sql/mysql_priv.h: Auto merged sql/sp_head.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 70ad1a0375f..48fc278ccde 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -357,18 +357,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; }
};
@@ -384,23 +381,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();
};