MDEV-6781: bug with query cache when using views

The data base lenth passed to invalidator fixed
This commit is contained in:
unknown 2014-10-07 19:38:45 +02:00
parent e73e1e7c7a
commit 63ca157c92

View File

@ -3280,7 +3280,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,
tables_used->view_db.length,
HA_CACHE_TBL_NONTRANSACT, 0, 0, TRUE))
DBUG_RETURN(0);
/*