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


Public Member Functions | |
| Item_func_encode (Item *a, char *seed) | |
| String * | val_str (String *) |
| void | fix_length_and_dec () |
| const char * | func_name () const |
Protected Attributes | |
| SQL_CRYPT | sql_crypt |
Definition at line 347 of file item_strfunc.h.
| Item_func_encode::Item_func_encode | ( | Item * | a, | |
| char * | seed | |||
| ) | [inline] |
| void Item_func_encode::fix_length_and_dec | ( | ) | [virtual] |
Implements Item_result_field.
Definition at line 1618 of file item_strfunc.cc.
References Item_func::args, Item::collation, Item::max_length, Item::maybe_null, my_charset_bin, and DTCollation::set().
01619 { 01620 max_length=args[0]->max_length; 01621 maybe_null=args[0]->maybe_null; 01622 collation.set(&my_charset_bin); 01623 }
Here is the call graph for this function:

| const char* Item_func_encode::func_name | ( | ) | const [inline, virtual] |
Implements Item_func.
Reimplemented in Item_func_decode.
Definition at line 356 of file item_strfunc.h.
Implements Item.
Reimplemented in Item_func_decode.
Definition at line 1625 of file item_strfunc.cc.
References Item_func::args, copy_if_not_alloced(), DBUG_ASSERT, SQL_CRYPT::encode(), Item::fixed, SQL_CRYPT::init(), String::length(), my_charset_bin, Item::null_value, String::ptr(), String::set_charset(), and sql_crypt.
01626 { 01627 DBUG_ASSERT(fixed == 1); 01628 String *res; 01629 if (!(res=args[0]->val_str(str))) 01630 { 01631 null_value=1; /* purecov: inspected */ 01632 return 0; /* purecov: inspected */ 01633 } 01634 null_value=0; 01635 res=copy_if_not_alloced(str,res,res->length()); 01636 sql_crypt.init(); 01637 sql_crypt.encode((char*) res->ptr(),res->length()); 01638 res->set_charset(&my_charset_bin); 01639 return res; 01640 }
Here is the call graph for this function:

SQL_CRYPT Item_func_encode::sql_crypt [protected] |
Definition at line 350 of file item_strfunc.h.
Referenced by Item_func_decode::val_str(), and val_str().
1.4.7

