Skip to content

Commit 03839e7

Browse files
committed
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.
1 parent 0d10b5a commit 03839e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ uint build_tmptable_filename(THD* thd, char *buff, size_t bufflen)
573573
DBUG_ENTER("build_tmptable_filename");
574574

575575
char *p= strnmov(buff, mysql_tmpdir, bufflen);
576-
my_snprintf(p, bufflen - (p - buff), "/%s%lx_%lx_%x",
576+
my_snprintf(p, bufflen - (p - buff), "/%s%lx_%llx_%x",
577577
tmp_file_prefix, current_pid,
578578
thd->thread_id, thd->tmp_table++);
579579

0 commit comments

Comments
 (0)