summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2014-10-07 19:38:45 +0200
committerunknown <sanja@askmonty.org>2014-10-07 19:38:45 +0200
commit63ca157c92e18e559db7032bc867362f5ec64a7b (patch)
tree9675a89bc61174bec42caf28dff56cab68a6d342 /sql/sql_cache.cc
parente73e1e7c7ac04295571a2f54872cacb2d580f4ae (diff)
downloadmariadb-git-63ca157c92e18e559db7032bc867362f5ec64a7b.tar.gz
MDEV-6781: bug with query cache when using views
The data base lenth passed to invalidator fixed
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index e6a795ba56e..ad0472cfc2c 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -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);
/*