mariadb/mysql-test/suite/tokudb.mvcc/t/mvcc-30.test
Zardosht Kasheff c61464298f [t:2922] move mvcc tests
git-svn-id: file:///svn/mysql/tests/mysql-test@23629 c7de825b-a66e-492c-adef-691d508d4ae1
2010-09-08 18:49:31 +00:00

47 lines
No EOL
1.2 KiB
Text
Executable file

# simple keyrange64 test, ensure that it reads number of leafentries in the system
#--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
--disable_warnings
DROP TABLE IF EXISTS foo;
--enable_warnings
connection conn1;
set session transaction isolation level repeatable read;
connection default;
set session transaction isolation level repeatable read;
create table foo (a int, b int, primary key (a))engine=TokUDB;
insert into foo values (1,1),(2,2),(3,3),(4,4),(5,5),(10,10),(20,20),(30,30),(40,40),(50,50);
connection conn1;
begin;
select * from foo;
--echo # number of rows should be 9
explain select * from foo where a < 50;
connection default;
delete from foo where a < 10;
--echo # number of rows should be 9
explain select * from foo where a < 50;
--echo # should have just 4 values
select * from foo where a < 50;
connection conn1;
--echo # number of rows should be 9
explain select * from foo where a < 50;
--echo # 9 values
select * From foo where a < 50;
commit;
connection default;
disconnect conn1;
connection default;
# Final cleanup.
set session transaction isolation level serializable;
DROP TABLE foo;