Commit cd6fc387 authored by unknown's avatar unknown

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.
parent c9a34948
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment