From f2564f616cc566be748e549e3182ce1485442db1 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 24 Jan 2003 01:54:39 +0200 Subject: 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 --- sql/sql_table.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_table.cc') 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); } -- cgit v1.2.1