mariadb/mysql-test/r/alter_table-big.result
unknown c1a54d976a Fixed test case for bug #25044 "ALTER TABLE ... ENABLE KEYS acquires
global 'opening tables' lock." after merging it into 5.1 tree.


mysql-test/r/alter_table-big.result:
  Fixed "show binlog events" usage as 5.1 and 5.0 sizes of binlog
  events differ.
mysql-test/t/alter_table-big.test:
  This test needs statement based binlogging.
  Also fixed "show binlog events" usage as 5.1 and 5.0 sizes
  of binlog events differ.
2007-01-20 14:08:53 +03:00

18 lines
633 B
Text

drop table if exists t1, t2;
create table t1 (n1 int, n2 int, n3 int,
key (n1, n2, n3),
key (n2, n3, n1),
key (n3, n1, n2));
create table t2 (i int);
alter table t1 disable keys;
reset master;
alter table t1 enable keys;;
insert into t2 values (1);
insert into t1 values (1, 1, 1);
show binlog events in 'master-bin.000001' from 102;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query 1 # use `test`; insert into t2 values (1)
master-bin.000001 # Query 1 # use `test`; alter table t1 enable keys
master-bin.000001 # Query 1 # use `test`; insert into t1 values (1, 1, 1)
drop tables t1, t2;
End of 5.0 tests