From fda75b151916fcf308ec56ea9381f2b2db6ac241 Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Fri, 28 Oct 2005 12:15:46 +0500 Subject: [PATCH] Fix for bug #9551 (Show commands fail) --- sql/sql_select.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &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