diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index cf68ba369978e..72bba30c13f9b 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -3341,7 +3341,7 @@ Query_cache::register_tables_from_list(THD *thd, TABLE_LIST *tables_used, There are not callback function for for VIEWs */ if (!insert_table(key_length, key, (*block_table), - tables_used->view_db.length + 1, 0, + tables_used->view_db.length, 0, HA_CACHE_TBL_NONTRANSACT, 0, 0, TRUE)) DBUG_RETURN(0); /*