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

Function check_n_cut_mysql50_prefix

sql/sql_table.cc:436–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434*/
435
436uint check_n_cut_mysql50_prefix(const char *from, char *to, uint to_length)
437{
438 if (check_mysql50_prefix(from))
439 return (uint) (strmake(to, from + MYSQL50_TABLE_NAME_PREFIX_LENGTH,
440 to_length - 1) - to);
441 return 0;
442}
443
444
445/*

Callers 1

tablename_to_filenameFunction · 0.85

Calls 2

check_mysql50_prefixFunction · 0.85
strmakeFunction · 0.85

Tested by

no test coverage detected