From 9a957a5b56005f1387aedb77509e1a0c31b7da9a Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 26 Apr 2016 20:56:25 +0200 Subject: move mysql-test into storage/tokudb, rename suites --- storage/tokudb/mysql-test/tokudb_bugs/t/1949.test | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 storage/tokudb/mysql-test/tokudb_bugs/t/1949.test (limited to 'storage/tokudb/mysql-test/tokudb_bugs/t/1949.test') diff --git a/storage/tokudb/mysql-test/tokudb_bugs/t/1949.test b/storage/tokudb/mysql-test/tokudb_bugs/t/1949.test new file mode 100755 index 00000000000..82deff17bc9 --- /dev/null +++ b/storage/tokudb/mysql-test/tokudb_bugs/t/1949.test @@ -0,0 +1,33 @@ +# ticket 895 is a query optimization problem with the primary key + +--source include/have_tokudb.inc +SET DEFAULT_STORAGE_ENGINE = 'tokudb'; + +--disable_warnings +DROP TABLE IF EXISTS foo; +--enable_warnings +set autocommit=off; + +create table foo ( a int); +select * from foo; + +lock tables foo write; + +insert into foo values (1); +select * from foo; +rollback; +select * From foo; +insert into foo values (2); +select * from foo; +commit; +select * From foo; +insert into foo values (3); +select * from foo; +rollback; +select * From foo; + +unlock tables; + +# Final cleanup. +set autocommit=on; +DROP TABLE foo; \ No newline at end of file -- cgit v1.2.1