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/r/ndb_cache.result | |
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/r/ndb_cache.result')
-rw-r--r-- | mysql-test/r/ndb_cache.result | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_cache.result b/mysql-test/r/ndb_cache.result new file mode 100644 index 00000000000..714e1831267 --- /dev/null +++ b/mysql-test/r/ndb_cache.result @@ -0,0 +1,43 @@ +set GLOBAL query_cache_size=1355776; +reset query cache; +flush status; +drop table if exists t1,t2; +CREATE TABLE t1 (a int) ENGINE=ndbcluster; +CREATE TABLE t2 (a int); +select * from t1; +a +show status like "Qcache_queries_in_cache"; +Variable_name Value +Qcache_queries_in_cache 0 +show status like "Qcache_inserts"; +Variable_name Value +Qcache_inserts 0 +show status like "Qcache_hits"; +Variable_name Value +Qcache_hits 0 +select * from t2; +a +show status like "Qcache_queries_in_cache"; +Variable_name Value +Qcache_queries_in_cache 1 +show status like "Qcache_inserts"; +Variable_name Value +Qcache_inserts 1 +show status like "Qcache_hits"; +Variable_name Value +Qcache_hits 0 +select * from t1; +a +select * from t2; +a +show status like "Qcache_queries_in_cache"; +Variable_name Value +Qcache_queries_in_cache 1 +show status like "Qcache_inserts"; +Variable_name Value +Qcache_inserts 1 +show status like "Qcache_hits"; +Variable_name Value +Qcache_hits 1 +drop table t1, t2; +SET GLOBAL query_cache_size=0; |