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

Function build_tmptable_filename

sql/sql_table.cc:671–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669*/
670
671uint build_tmptable_filename(THD* thd, char *buff, size_t bufflen)
672{
673 LEX_STRING name;
674 DBUG_ENTER("build_tmptable_filename");
675
676 char *p= strnmov(buff, mysql_tmpdir, bufflen-2);
677 *p++= '/';
678
679 name= {p, bufflen - (p - buff) };
680
681 make_tmp_table_name(thd, &name, "temptable");
682
683 size_t length= unpack_filename(buff, buff);
684 DBUG_PRINT("exit", ("buff: '%s'", buff));
685 DBUG_RETURN((uint)length);
686}
687
688/*
689 Create lower case paths for engines that requires them

Callers 2

Alter_table_ctxMethod · 0.85

Calls 3

strnmovFunction · 0.85
make_tmp_table_nameFunction · 0.85
unpack_filenameFunction · 0.85

Tested by

no test coverage detected