summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2022-12-23 20:54:01 -0800
committerIgor Babaev <igor@askmonty.org>2022-12-23 20:54:01 -0800
commitcea5cdd0eb30444467420f91da10752cbe697d23 (patch)
tree07a7e87441d5e55d52cf6fcb4ba918c3a04a6c65 /sql/sql_cache.cc
parenta09612014a827dc3bc09ab50bbb1b6b0b930190e (diff)
downloadmariadb-git-bb-10.11-MDEV-29971.tar.gz
MDEV-29971 Re-design the upper level of handling SELECT statementsbb-10.11-MDEV-29971
The initial patch. All tests from the main test suite passed.
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 81ea002ce32..37fc6790935 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -4216,6 +4216,8 @@ my_bool Query_cache::ask_handler_allowance(THD *thd,
for (; tables_used; tables_used= tables_used->next_global)
{
+ if (tables_used->is_view_or_derived())
+ continue;
TABLE *table;
handler *handler;
if (!(table= tables_used->table))