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


Public Member Functions | |
| Item_func_charset (Item *a) | |
| String * | val_str (String *) |
| const char * | func_name () const |
| void | fix_length_and_dec () |
| table_map | not_null_tables () const |
| bool | check_partition_func_processor (byte *bool_arg) |
Definition at line 758 of file item_strfunc.h.
| Item_func_charset::Item_func_charset | ( | Item * | a | ) | [inline] |
| void Item_func_charset::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Definition at line 764 of file item_strfunc.h.
References DTCollation::collation, Item::collation, Item::max_length, Item::maybe_null, charset_info_st::mbmaxlen, DTCollation::set(), and system_charset_info.
00765 { 00766 collation.set(system_charset_info); 00767 max_length= 64 * collation.collation->mbmaxlen; // should be enough 00768 maybe_null= 0; 00769 };
Here is the call graph for this function:

| const char* Item_func_charset::func_name | ( | ) | const [inline, virtual] |
| table_map Item_func_charset::not_null_tables | ( | ) | const [inline, virtual] |
Implements Item.
Definition at line 2482 of file item_strfunc.cc.
References Item_func::args, DTCollation::collation, Item::collation, String::copy(), charset_info_st::csname, DBUG_ASSERT, Item::fixed, my_charset_latin1, Item::null_value, and strlen().
02483 { 02484 DBUG_ASSERT(fixed == 1); 02485 uint dummy_errors; 02486 02487 CHARSET_INFO *cs= args[0]->collation.collation; 02488 null_value= 0; 02489 str->copy(cs->csname, strlen(cs->csname), 02490 &my_charset_latin1, collation.collation, &dummy_errors); 02491 return str; 02492 }
Here is the call graph for this function:

1.4.7

