Commit 760bc0a2 authored by reggie@linux.site's avatar reggie@linux.site

bug# 17082 Client hangs when creating tables with partition

This bug was only on Windows but we updated the call to 
create_temporary_file to match what is being done in other
areas of MySQL
parent 88ba26e1
......@@ -2397,8 +2397,9 @@ char *generate_partition_syntax(partition_info *part_info,
DBUG_ENTER("generate_partition_syntax");
write_part_state= (part_info->part_state && !part_info->part_state_len);
if (unlikely(((fptr= create_temp_file(path,mysql_tmpdir,"psy", O_RDWR,
MYF(MY_WME)))) < 0))
if (unlikely(((fptr= create_temp_file(path,mysql_tmpdir,"psy",
O_RDWR | O_BINARY | O_TRUNC |
O_TEMPORARY, MYF(MY_WME)))) < 0))
DBUG_RETURN(NULL);
#ifndef __WIN__
unlink(path);
......
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