summaryrefslogtreecommitdiff
path: root/sql/sql_expression_cache.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-05-30 21:35:32 +0300
committerunknown <sanja@askmonty.org>2011-05-30 21:35:32 +0300
commitcd6fc3876b08a0a85d06140a778f4d66f7ce92e7 (patch)
tree0b3c23e88ec806d6f9ab3d23bdf96987f84d9ad1 /sql/sql_expression_cache.cc
parentc9a349488b95a9a938564fe1ac06dafc70db5864 (diff)
downloadmariadb-git-cd6fc3876b08a0a85d06140a778f4d66f7ce92e7.tar.gz
Fixed valgrind problem in expression cache (double opening the table).
sql/sql_expression_cache.cc: The call should not open the temporary table. It will be done later after its index creation.
Diffstat (limited to 'sql/sql_expression_cache.cc')
-rw-r--r--sql/sql_expression_cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_expression_cache.cc b/sql/sql_expression_cache.cc
index db1f47c5603..c3450884610 100644
--- a/sql/sql_expression_cache.cc
+++ b/sql/sql_expression_cache.cc
@@ -109,7 +109,8 @@ void Expression_cache_tmptable::init()
~(OPTION_BIG_TABLES |
TMP_TABLE_FORCE_MYISAM)),
HA_POS_ERROR,
- (char *)"subquery-cache-table")))
+ (char *)"subquery-cache-table",
+ TRUE)))
{
DBUG_PRINT("error", ("create_tmp_table failed, caching switched off"));
DBUG_VOID_RETURN;