MCPcopy Create free account
hub / github.com/MariaDB/server / make_tmp_table_name

Function make_tmp_table_name

sql/sql_table.cc:643–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641*/
642
643void make_tmp_table_name(THD *thd, LEX_STRING *to, const char *prefix)
644{
645 to->length= my_snprintf((char*) to->str, to->length, "%s-%s-%lx-%llx-%x",
646 tmp_file_prefix, prefix, current_pid,
647 thd->thread_id, thd->tmp_table++);
648 if (lower_case_table_names)
649 {
650 // Ok to use latin1 as the file name is in the form '#sql-exchange-abc-def'
651 my_casedn_str_latin1(to->str);
652 }
653}
654
655
656/**

Callers 5

build_tmptable_filenameFunction · 0.85
startMethod · 0.85
exchange_partitionMethod · 0.85
Alter_table_ctxMethod · 0.85

Calls 2

my_snprintfFunction · 0.85
my_casedn_str_latin1Function · 0.85

Tested by

no test coverage detected