diff options
author | unknown <bell@sanja.is.com.ua> | 2005-06-17 20:30:11 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-06-17 20:30:11 +0300 |
commit | 46fa81f9901917bad07068b1331424a7061a4503 (patch) | |
tree | 163cfff454177bc9708cddcac9286595598d40c9 /sql/item_func.cc | |
parent | aece56e30a3f3f6451d36b6a614ae692840bb4c8 (diff) | |
parent | 467ca505b5c5cb6f1512fc3425fd0f0b8620c099 (diff) | |
download | mariadb-git-46fa81f9901917bad07068b1331424a7061a4503.tar.gz |
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug4-5.0
sql/item.h:
Auto merged
sql/item_func.cc:
Auto merged
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 71620a68c34..4166605ae11 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -1061,6 +1061,14 @@ my_decimal *Item_decimal_typecast::val_decimal(my_decimal *dec) } +void Item_decimal_typecast::print(String *str) +{ + str->append("cast(", 5); + args[0]->print(str); + str->append(" as decimal)", 12); +} + + double Item_func_plus::real_op() { double value= args[0]->val_real() + args[1]->val_real(); @@ -4111,7 +4119,7 @@ bool Item_func_get_user_var::eq(const Item *item, bool binary_cmp) const return 1; // Same item is same. /* Check if other type is also a get_user_var() object */ if (item->type() != FUNC_ITEM || - ((Item_func*) item)->func_name() != func_name()) + ((Item_func*) item)->functype() != functype()) return 0; Item_func_get_user_var *other=(Item_func_get_user_var*) item; return (name.length == other->name.length && |