1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Merge BUG#12997905 from 5.1 to 5.5

This commit is contained in:
Jorgen Loland
2011-11-18 14:53:54 +01:00
3 changed files with 21 additions and 1 deletions

View File

@@ -10894,6 +10894,9 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
if (open_tmp_table(table))
goto err;
// Make empty record so random data is not written to disk
empty_record(table);
thd->mem_root= mem_root_save;
DBUG_RETURN(table);