summaryrefslogtreecommitdiff
path: root/mysql-test/t/bdb_cache.test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-11-06 00:41:25 +0200
committerunknown <bell@sanja.is.com.ua>2002-11-06 00:41:25 +0200
commit2eb2786dcc1cbd217b5df9992571afa75b83f083 (patch)
tree33f30a46c49c881c4b5bea255e3892a784ad4778 /mysql-test/t/bdb_cache.test
parent54ebb4175bc98d1ba2ca0e72abd83150d722ce8a (diff)
downloadmariadb-git-2eb2786dcc1cbd217b5df9992571afa75b83f083.tar.gz
fixed bdb transaction with query cache bug
Diffstat (limited to 'mysql-test/t/bdb_cache.test')
-rw-r--r--mysql-test/t/bdb_cache.test50
1 files changed, 50 insertions, 0 deletions
diff --git a/mysql-test/t/bdb_cache.test b/mysql-test/t/bdb_cache.test
new file mode 100644
index 00000000000..aa5572886c5
--- /dev/null
+++ b/mysql-test/t/bdb_cache.test
@@ -0,0 +1,50 @@
+-- source include/have_bdb.inc
+-- source include/have_query_cache.inc
+
+#
+# Without auto_commit.
+#
+drop table if exists t1, t2, t3;
+flush status;
+set autocommit=0;
+create table t1 (a int not null) type=bdb;
+insert into t1 values (1),(2),(3);
+select * from t1;
+show status like "Qcache_queries_in_cache";
+drop table t1;
+commit;
+set autocommit=1;
+begin;
+create table t1 (a int not null) type=bdb;
+insert into t1 values (1),(2),(3);
+select * from t1;
+show status like "Qcache_queries_in_cache";
+drop table t1;
+commit;
+create table t1 (a int not null) type=bdb;
+create table t2 (a int not null) type=bdb;
+create table t3 (a int not null) type=bdb;
+insert into t1 values (1),(2);
+insert into t2 values (1),(2);
+insert into t3 values (1),(2);
+select * from t1;
+select * from t2;
+select * from t3;
+show status like "Qcache_queries_in_cache";
+show status like "Qcache_hits";
+begin;
+select * from t1;
+select * from t2;
+select * from t3;
+show status like "Qcache_queries_in_cache";
+show status like "Qcache_hits";
+insert into t1 values (3);
+insert into t2 values (3);
+insert into t1 values (4);
+select * from t1;
+select * from t2;
+select * from t3;
+show status like "Qcache_queries_in_cache";
+show status like "Qcache_hits";
+commit;
+show status like "Qcache_queries_in_cache"; \ No newline at end of file