summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-01-24 01:54:39 +0200
committerunknown <bell@sanja.is.com.ua>2003-01-24 01:54:39 +0200
commitf2564f616cc566be748e549e3182ce1485442db1 (patch)
tree85477401a20a65108bad586a9a2dc828a16ffcf7 /sql/sql_table.cc
parent399d9e2f270c831732bce7585ae1e135804fcc10 (diff)
downloadmariadb-git-f2564f616cc566be748e549e3182ce1485442db1.tar.gz
fixed table invalidation in simple renaming
mysql-test/r/query_cache.result: test of simple renaming & QC mysql-test/t/query_cache.test: test of simple renaming & QC
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index c04b4871b4d..a763d6b6b91 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1432,6 +1432,8 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
send_ok(&thd->net);
}
+ table_list->table=0; // For query cache
+ query_cache_invalidate3(thd, table_list, 0);
DBUG_RETURN(error);
}