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


Public Member Functions | |
| Item_func_collation (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 774 of file item_strfunc.h.
| Item_func_collation::Item_func_collation | ( | Item * | a | ) | [inline] |
| void Item_func_collation::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Definition at line 780 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.
00781 { 00782 collation.set(system_charset_info); 00783 max_length= 64 * collation.collation->mbmaxlen; // should be enough 00784 maybe_null= 0; 00785 };
Here is the call graph for this function:

| const char* Item_func_collation::func_name | ( | ) | const [inline, virtual] |
| table_map Item_func_collation::not_null_tables | ( | ) | const [inline, virtual] |
Implements Item.
Definition at line 2494 of file item_strfunc.cc.
References Item_func::args, DTCollation::collation, Item::collation, String::copy(), DBUG_ASSERT, Item::fixed, my_charset_latin1, charset_info_st::name, Item::null_value, and strlen().
02495 { 02496 DBUG_ASSERT(fixed == 1); 02497 uint dummy_errors; 02498 CHARSET_INFO *cs= args[0]->collation.collation; 02499 02500 null_value= 0; 02501 str->copy(cs->name, strlen(cs->name), 02502 &my_charset_latin1, collation.collation, &dummy_errors); 02503 return str; 02504 }
Here is the call graph for this function:

1.4.7

