| 669 | */ |
| 670 | |
| 671 | uint 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 |
no test coverage detected