MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / alloc

Method alloc

sql/item_strfunc.cc:1562–1571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562char *Item_func_old_password::alloc(THD *thd, const char *password,
1563 size_t pass_len)
1564{
1565 char *buff= (char *) thd->alloc(SCRAMBLED_PASSWORD_CHAR_LENGTH_323+1);
1566 if (buff)
1567 {
1568 my_make_scrambled_password_323(buff, password, pass_len);
1569 }
1570 return buff;
1571}
1572
1573
1574#define bin_to_ascii(c) ((c)>=38?((c)-38+'a'):(c)>=12?((c)-12+'A'):(c)+'.')

Callers 15

date_time_format_copyFunction · 0.45
my_TIME_to_strFunction · 0.45
val_str_asciiMethod · 0.45
val_strMethod · 0.45
initMethod · 0.45
alloc_bufferFunction · 0.45
Item_funcMethod · 0.45
val_strMethod · 0.45
my_decimal2stringFunction · 0.45
setup_underlyingMethod · 0.45
init_qnameMethod · 0.45

Calls 1

Tested by

no test coverage detected