#include <item_strfunc.h>
Inheritance diagram for Item_func_binary:


Public Member Functions | |
| Item_func_binary (Item *a) | |
| String * | val_str (String *a) |
| void | fix_length_and_dec () |
| void | print (String *str) |
| const char * | func_name () const |
| bool | check_partition_func_processor (byte *bool_arg) |
Definition at line 619 of file item_strfunc.h.
| Item_func_binary::Item_func_binary | ( | Item * | a | ) | [inline] |
| void Item_func_binary::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Definition at line 632 of file item_strfunc.h.
References Item_func::args, Item::collation, Item::max_length, my_charset_bin, and DTCollation::set().
00633 { 00634 collation.set(&my_charset_bin); 00635 max_length=args[0]->max_length; 00636 }
Here is the call graph for this function:

| const char* Item_func_binary::func_name | ( | ) | const [inline, virtual] |
| void Item_func_binary::print | ( | String * | str | ) | [virtual] |
Reimplemented from Item_func.
Definition at line 2593 of file item_strfunc.cc.
References String::append(), Item_func::args, Item::print(), and STRING_WITH_LEN.
02594 { 02595 str->append(STRING_WITH_LEN("cast(")); 02596 args[0]->print(str); 02597 str->append(STRING_WITH_LEN(" as binary)")); 02598 }
Here is the call graph for this function:

Implements Item.
Definition at line 623 of file item_strfunc.h.
References Item_func::args, DBUG_ASSERT, Item::fixed, my_charset_bin, Item::null_value, String::set_charset(), and Item::val_str().
00624 { 00625 DBUG_ASSERT(fixed == 1); 00626 String *tmp=args[0]->val_str(a); 00627 null_value=args[0]->null_value; 00628 if (tmp) 00629 tmp->set_charset(&my_charset_bin); 00630 return tmp; 00631 }
Here is the call graph for this function:

1.4.7

