| 641 | */ |
| 642 | |
| 643 | void 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 | /** |
no test coverage detected