mariadb/mysql-test/suite/tokudb.bugs/t/2952.test
Zardosht Kasheff 580243623d [t:3056], disable test for 5.5
git-svn-id: file:///svn/mysql/tests/mysql-test@26166 c7de825b-a66e-492c-adef-691d508d4ae1
2010-12-03 17:12:52 +00:00

75 lines
No EOL
1.9 KiB
Text
Executable file

# ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc
--source include/not_5_5.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 default;
set session transaction isolation level read uncommitted;
set session tokudb_prelock_empty=1;
set session tokudb_load_save_space=0;
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
show create table foo;
begin;
insert into foo values (1,10,100),(2,20,200),(3,30,300);
connection conn1;
set session transaction isolation level read uncommitted;
--error ER_LOCK_WAIT_TIMEOUT
insert into foo values (100,100,100);
--error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a;
--error ER_LOCK_WAIT_TIMEOUT
truncate table foo;
connection default;
commit;
drop table foo;
set session tokudb_prelock_empty=1;
set session tokudb_load_save_space=1;
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
show create table foo;
begin;
insert into foo values (1,10,100),(2,20,200),(3,30,300);
connection conn1;
--error ER_LOCK_WAIT_TIMEOUT
insert into foo values (100,100,100);
--error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a;
--error ER_LOCK_WAIT_TIMEOUT
truncate table foo;
connection default;
commit;
drop table foo;
set session tokudb_prelock_empty=0;
set session tokudb_load_save_space=0;
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
show create table foo;
begin;
insert into foo values (1,10,100),(2,20,200),(3,30,300);
connection conn1;
insert into foo values (100,100,100);
--error ER_LOCK_WAIT_TIMEOUT
alter table foo drop index a;
--error ER_LOCK_WAIT_TIMEOUT
truncate table foo;
connection default;
disconnect conn1;
connection default;
# Final cleanup.
set session transaction isolation level serializable;
DROP TABLE foo;