summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2005-12-01 12:01:38 +0200
committerbell@sanja.is.com.ua <>2005-12-01 12:01:38 +0200
commit39689634ac14024aabc6636fd8f5584f7edc349c (patch)
treefb6cb09d5a8005a97855828e093e5d789d94ac04 /sql/sql_cache.cc
parentc2abd08da5044387c482342284a131aa8e72efba (diff)
downloadmariadb-git-39689634ac14024aabc6636fd8f5584f7edc349c.tar.gz
We should not skip temptable view along with other derived
tables during query tables registration. (BUG#15119)
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 3965079988b..24ab27c587d 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2184,7 +2184,7 @@ Query_cache::register_tables_from_list(TABLE_LIST *tables_used,
tables_used;
tables_used= tables_used->next_global, n++, block_table++)
{
- if (tables_used->derived)
+ if (tables_used->derived && !tables_used->view)
{
DBUG_PRINT("qcache", ("derived table skipped"));
n--;