EVOLUTION-MANAGER
Edit File: mvcc-25.test
# ticket 895 is a query optimization problem with the primary key --source include/have_tokudb.inc SET DEFAULT_STORAGE_ENGINE = 'tokudb'; --echo # Establish connection conn1 (user = root) connect (conn1,localhost,root,,); connect (conn2,localhost,root,,); connect (conn3,localhost,root,,); --disable_warnings DROP TABLE IF EXISTS foo,bar; --enable_warnings connection default; set session transaction isolation level repeatable read; create table foo (a int, b varchar (100), primary key (a))engine=TokuDB; create table bar like foo; show create table foo; show create table bar; connection conn1; set session transaction isolation level repeatable read; begin; --echo # should be empty select * from foo; connection default; begin; --echo # should be empty select * from bar; connection conn2; begin; --echo # should be empty select * from foo; connection default; insert into foo values (1,"g"); commit; replace into foo values (1,"ga"); replace into foo values (1,"gar"); replace into foo values (1,"garb"); replace into foo values (1,"aaaa"); connection conn3; --echo # should have one value select * from foo; commit; connection conn2; --echo # should be empty select * from foo; commit; connection conn1; --echo # should be empty select * from foo; commit; connection default; disconnect conn1; disconnect conn2; disconnect conn3; connection default; # Final cleanup. set session transaction isolation level serializable; DROP TABLE foo,bar;