diff options
author | unknown <bell@sanja.is.com.ua> | 2003-01-24 01:54:39 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-01-24 01:54:39 +0200 |
commit | f2564f616cc566be748e549e3182ce1485442db1 (patch) | |
tree | 85477401a20a65108bad586a9a2dc828a16ffcf7 /mysql-test | |
parent | 399d9e2f270c831732bce7585ae1e135804fcc10 (diff) | |
download | mariadb-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 'mysql-test')
-rw-r--r-- | mysql-test/r/query_cache.result | 11 | ||||
-rw-r--r-- | mysql-test/t/query_cache.test | 14 |
2 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result index a37313a150a..9d63050fc4e 100644 --- a/mysql-test/r/query_cache.result +++ b/mysql-test/r/query_cache.result @@ -542,3 +542,14 @@ select * from mysql.db; show status like "Qcache_queries_in_cache"; Variable_name Value Qcache_queries_in_cache 0 +create table t1(id int auto_increment primary key); +insert into t1 values (NULL), (NULL), (NULL); +select * from t1 where id=2; +id +2 +alter table t1 rename to t2; +select * from t1 where id=2; +Table 'test.t1' doesn't exist +drop table t2; +select * from t1 where id=2; +Table 'test.t1' doesn't exist diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test index 6c3f3d6ac52..f77ea3c3b2a 100644 --- a/mysql-test/t/query_cache.test +++ b/mysql-test/t/query_cache.test @@ -383,3 +383,17 @@ disable_result_log; select * from mysql.db; enable_result_log; show status like "Qcache_queries_in_cache"; + + +# +# simple rename test +# +create table t1(id int auto_increment primary key); +insert into t1 values (NULL), (NULL), (NULL); +select * from t1 where id=2; +alter table t1 rename to t2; +-- error 1146 +select * from t1 where id=2; +drop table t2; +-- error 1146 +select * from t1 where id=2; |