summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorholyfoot@mysql.com <>2005-11-03 14:54:13 +0400
committerholyfoot@mysql.com <>2005-11-03 14:54:13 +0400
commite9f256e2bd34ad1474c9a4e143dd06f65c567d90 (patch)
treefb552997262b1fc46db2da094e9410a10459583e /sql
parentd028e8e0635b2abe2735e2248aebc95c42b37cc3 (diff)
parentfda75b151916fcf308ec56ea9381f2b2db6ac241 (diff)
downloadmariadb-git-e9f256e2bd34ad1474c9a4e143dd06f65c567d90.tar.gz
Merge bk@192.168.21.1:/usr/home/bk/mysql-5.0
into mysql.com:/home/hf/work/mysql-5.0.9551
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 285a5c5696b..4254f90d628 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -8029,7 +8029,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