Commit 03839e78 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Corrected format string for long long thread_id

This is expected to fix many test failures on 32bit builds where creation of
second temporary table was failing.
parent 0d10b5a5
......@@ -573,7 +573,7 @@ uint build_tmptable_filename(THD* thd, char *buff, size_t bufflen)
DBUG_ENTER("build_tmptable_filename");
char *p= strnmov(buff, mysql_tmpdir, bufflen);
my_snprintf(p, bufflen - (p - buff), "/%s%lx_%lx_%x",
my_snprintf(p, bufflen - (p - buff), "/%s%lx_%llx_%x",
tmp_file_prefix, current_pid,
thd->thread_id, thd->tmp_table++);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment