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:
@ -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--;
|
||||
|
Reference in New Issue
Block a user