diff options
author | unknown <hf@deer.(none)> | 2005-10-28 12:15:46 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-10-28 12:15:46 +0500 |
commit | d44316cd44df5286da8f687455a85a1da5290872 (patch) | |
tree | 483ec5d9341f0151ec5f45835ea2b6d73e2313e3 | |
parent | 9b069aa3a7244828f0a62b77953838921380cb57 (diff) | |
download | mariadb-git-d44316cd44df5286da8f687455a85a1da5290872.tar.gz |
Fix for bug #9551 (Show commands fail)
sql/sql_select.cc:
stop using temp_pool if we have TEST_KEEP_TMP_TABLES on
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 97d5bf4e1d5..ec5c7a7b51b 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -8025,7 +8025,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, statistic_increment(thd->status_var.created_tmp_tables, &LOCK_status); - if (use_temp_pool) + if (use_temp_pool && !(test_flags & TEST_KEEP_TMP_TABLES)) temp_pool_slot = bitmap_set_next(&temp_pool); if (temp_pool_slot != MY_BIT_NONE) // we got a slot |