summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2002-12-24 13:58:07 +0200
committerSinisa@sinisa.nasamreza.org <>2002-12-24 13:58:07 +0200
commit5988ae5ca590dcecaee0158ed8e9699f274e30d9 (patch)
tree47e3ffaa6aba38ec5904fb7bcd002fa92b377664 /sql/sql_cache.cc
parent4158538dc7bf80f3e3d9965b18dd98632d91b905 (diff)
downloadmariadb-git-5988ae5ca590dcecaee0158ed8e9699f274e30d9.tar.gz
Many fixes.
I still have to make a test case for : UPDATE from sub-select with derived table
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 aa0f5824b4e..1cfbbf74da6 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1062,6 +1062,8 @@ void Query_cache::invalidate(THD *thd, TABLE_LIST *tables_used,
for (; tables_used; tables_used=tables_used->next)
{
DBUG_ASSERT(!using_transactions || tables_used->table!=0);
+ if (tables_used->derived)
+ continue;
if (using_transactions &&
tables_used->table->file->has_transactions())
/*