diff options
author | unknown <bell@sanja.is.com.ua> | 2003-10-28 12:45:37 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-10-28 12:45:37 +0200 |
commit | 683dcaae6bfc101d352755f834ecda48f4ea4700 (patch) | |
tree | 1088bf30fb5febda5000cffc7db8982c9e5d1257 /sql/item_func.cc | |
parent | 87eb9ea2b10e5ae9d251444e9f3372b958f6a7ea (diff) | |
parent | 47f3a4fd4aa4ac7f2944c85aa20333fa0259ac77 (diff) | |
download | mariadb-git-683dcaae6bfc101d352755f834ecda48f4ea4700.tar.gz |
merge
sql/item.cc:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
sql/item_sum.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index ce0614f1e7c..bff7c9a6bf3 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -462,6 +462,24 @@ String *Item_num_op::val_str(String *str) } +void Item_func_signed::print(String *str) +{ + str->append("cast("); + args[0]->print(str); + str->append("as signed)"); + +} + + +void Item_func_unsigned::print(String *str) +{ + str->append("cast("); + args[0]->print(str); + str->append("as unsigned)"); + +} + + double Item_func_plus::val() { double value=args[0]->val()+args[1]->val(); @@ -2820,6 +2838,26 @@ double Item_func_match::val() DBUG_RETURN(ft_handler->please->find_relevance(ft_handler, record, 0)); } +void Item_func_match::print(String *str) +{ + str->append("(match "); + List_iterator_fast<Item> li(fields); + Item *item; + bool first= 1; + while ((item= li++)) + { + if (first) + first= 0; + else + str->append(','); + item->print(str); + } + str->append(" against ("); + args[0]->print(str); + if (mode == FT_BOOL) + str->append(" in boolean mode"); + str->append("))"); +} longlong Item_func_bit_xor::val_int() { |