diff options
author | unknown <bell@sanja.is.com.ua> | 2004-05-05 11:22:10 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-05-05 11:22:10 +0300 |
commit | ea646dce60994b8a5d36d575ed371144cd01eeb3 (patch) | |
tree | 0a4b2c48d0cb89c7b1aea86ed25e230b0689bfd6 /mysql-test/t/ndb_cache.test | |
parent | af847c22af26e1cc308eeab08d35942741809408 (diff) | |
download | mariadb-git-ea646dce60994b8a5d36d575ed371144cd01eeb3.tar.gz |
avoid using ndb tables in query cache
sql/ha_ndbcluster.h:
fixed layout
prohibit using query cache with ndb tables
sql/handler.h:
new caching type
sql/sql_cache.cc:
support of new caching type (caching prohibited)
Diffstat (limited to 'mysql-test/t/ndb_cache.test')
-rw-r--r-- | mysql-test/t/ndb_cache.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_cache.test b/mysql-test/t/ndb_cache.test new file mode 100644 index 00000000000..abd09424f64 --- /dev/null +++ b/mysql-test/t/ndb_cache.test @@ -0,0 +1,31 @@ +-- source include/have_query_cache.inc +-- source include/have_ndb.inc + +set GLOBAL query_cache_size=1355776; +reset query cache; +flush status; + +--disable_warnings +drop table if exists t1,t2; +--enable_warnings + +CREATE TABLE t1 (a int) ENGINE=ndbcluster; +CREATE TABLE t2 (a int); + +select * from t1; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +select * from t2; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +select * from t1; +select * from t2; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; + +drop table t1, t2; + +SET GLOBAL query_cache_size=0; |