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
This commit is contained in:
unknown 2003-01-24 01:54:39 +02:00
commit f2564f616c
3 changed files with 27 additions and 0 deletions

View file

@ -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);
}