mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merged 5.1 with maria 5.1
This commit is contained in:
@ -2639,7 +2639,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 && !tables_used->view)
|
||||
if (tables_used->is_anonymous_derived_table())
|
||||
{
|
||||
DBUG_PRINT("qcache", ("derived table skipped"));
|
||||
n--;
|
||||
@ -2752,7 +2752,7 @@ my_bool Query_cache::register_all_tables(Query_cache_block *block,
|
||||
tmp++)
|
||||
unlink_table(tmp);
|
||||
}
|
||||
return (n);
|
||||
return test(n);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user