mariadb/storage/tokudb/mysql-test/tokudb_bugs/r/fileops-2.result
Sergei Golubchik 20031c6273 Enable TokuDB online ALTER
sql/create_options.cc:
  an utility function to compare two filled-in engine_option structures
sql/sql_table.cc:
  * two keys are different if their option_struct's differ
    (for ALTER TABLE DROP key, ADD key)
  * engines doing inplace alter must see the new frm image
2013-09-25 19:42:22 +02:00

23 lines
796 B
Text

# Establish connection conn1 (user = root)
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo;
create table foo ( a int, b int, c int, key (a), key (b));
insert into foo values (1,10,100);
begin;
insert into foo values(2,20,200);
set session lock_wait_timeout=1;
select * from foo;
a b c
1 10 100
drop table foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rename table foo to bar;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
truncate table foo;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
alter table foo add index (c);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
alter table foo drop index a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
DROP TABLE foo;