diff options
| author | Jorgen Loland <jorgen.loland@oracle.com> | 2011-11-18 14:53:54 +0100 |
|---|---|---|
| committer | Jorgen Loland <jorgen.loland@oracle.com> | 2011-11-18 14:53:54 +0100 |
| commit | 90eceaa18e7f923f01b07aa6e8046616ef6dc36b (patch) | |
| tree | a4eace05cadaa9ce0751f0e5a078ba97794c0314 /sql/sql_select.cc | |
| parent | b8ca26691d30282285cb7bc07f1a1d79a3e2fddd (diff) | |
| parent | 4fc5752fb88d1294010a62063e8f1081664286d3 (diff) | |
| download | mariadb-git-90eceaa18e7f923f01b07aa6e8046616ef6dc36b.tar.gz | |
Merge BUG#12997905 from 5.1 to 5.5
Diffstat (limited to 'sql/sql_select.cc')
| -rw-r--r-- | sql/sql_select.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index e67a6ebef62..9f43026afa9 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -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); |
