1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

We should not skip temptable view along with other derived

tables during query tables registration. (BUG#15119)
This commit is contained in:
bell@sanja.is.com.ua
2005-12-01 12:01:38 +02:00
parent c2abd08da5
commit 39689634ac
3 changed files with 93 additions and 1 deletions

View File

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