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.
This commit is contained in:
unknown 2011-05-30 21:35:32 +03:00
parent c9a349488b
commit cd6fc3876b

View File

@ -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;