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


Public Member Functions | |
| Item_func_password (Item *a) | |
| String * | val_str (String *str) |
| void | fix_length_and_dec () |
| const char * | func_name () const |
Static Public Member Functions | |
| static char * | alloc (THD *thd, const char *password) |
Private Attributes | |
| char | tmp_value [SCRAMBLED_PASSWORD_CHAR_LENGTH+1] |
Definition at line 279 of file item_strfunc.h.
| Item_func_password::Item_func_password | ( | Item * | a | ) | [inline] |
| char * Item_func_password::alloc | ( | THD * | thd, | |
| const char * | password | |||
| ) | [static] |
Definition at line 1539 of file item_strfunc.cc.
References make_scrambled_password(), and SCRAMBLED_PASSWORD_CHAR_LENGTH.
01540 { 01541 char *buff= (char *) thd->alloc(SCRAMBLED_PASSWORD_CHAR_LENGTH+1); 01542 if (buff) 01543 make_scrambled_password(buff, password); 01544 return buff; 01545 }
Here is the call graph for this function:

| void Item_func_password::fix_length_and_dec | ( | ) | [inline, virtual] |
Implements Item_result_field.
Definition at line 285 of file item_strfunc.h.
References Item::max_length, and SCRAMBLED_PASSWORD_CHAR_LENGTH.
00285 { max_length= SCRAMBLED_PASSWORD_CHAR_LENGTH; }
| const char* Item_func_password::func_name | ( | ) | const [inline, virtual] |
Implements Item.
Definition at line 1526 of file item_strfunc.cc.
References Item_func::args, String::c_ptr(), String::charset(), DBUG_ASSERT, Item::fixed, String::length(), make_scrambled_password(), my_empty_string(), Item::null_value, SCRAMBLED_PASSWORD_CHAR_LENGTH, String::set(), tmp_value, and Item::val_str().
01527 { 01528 DBUG_ASSERT(fixed == 1); 01529 String *res= args[0]->val_str(str); 01530 if ((null_value=args[0]->null_value)) 01531 return 0; 01532 if (res->length() == 0) 01533 return &my_empty_string; 01534 make_scrambled_password(tmp_value, res->c_ptr()); 01535 str->set(tmp_value, SCRAMBLED_PASSWORD_CHAR_LENGTH, res->charset()); 01536 return str; 01537 }
Here is the call graph for this function:

char Item_func_password::tmp_value[SCRAMBLED_PASSWORD_CHAR_LENGTH+1] [private] |
1.4.7

