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


Public Member Functions | |
| Item_func_sysconst () | |
| Item * | safe_charset_converter (CHARSET_INFO *tocs) |
| virtual const char * | fully_qualified_func_name () const =0 |
Definition at line 369 of file item_strfunc.h.
| Item_func_sysconst::Item_func_sysconst | ( | ) | [inline] |
Definition at line 372 of file item_strfunc.h.
References Item::collation, DERIVATION_SYSCONST, DTCollation::set(), and system_charset_info.
00373 { collation.set(system_charset_info,DERIVATION_SYSCONST); }
Here is the call graph for this function:

| virtual const char* Item_func_sysconst::fully_qualified_func_name | ( | ) | const [pure virtual] |
Implemented in Item_func_database, Item_func_user, and Item_func_current_user.
Referenced by safe_charset_converter().
Here is the caller graph for this function:

| Item * Item_func_sysconst::safe_charset_converter | ( | CHARSET_INFO * | tocs | ) | [virtual] |
Reimplemented from Item.
Definition at line 1659 of file item_strfunc.cc.
References String::charset(), Item::collation, String::copy(), DTCollation::derivation, fully_qualified_func_name(), String::length(), String::mark_as_const(), NULL, String::ptr(), safe_charset_converter(), Item::str_value, and Item::val_str().
Referenced by safe_charset_converter().
01660 { 01661 Item_string *conv; 01662 uint conv_errors; 01663 String tmp, cstr, *ostr= val_str(&tmp); 01664 cstr.copy(ostr->ptr(), ostr->length(), ostr->charset(), tocs, &conv_errors); 01665 if (conv_errors || 01666 !(conv= new Item_static_string_func(fully_qualified_func_name(), 01667 cstr.ptr(), cstr.length(), 01668 cstr.charset(), 01669 collation.derivation))) 01670 { 01671 return NULL; 01672 } 01673 conv->str_value.copy(); 01674 conv->str_value.mark_as_const(); 01675 return conv; 01676 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

