Loading mysql-test/extra/binlog_tests/blackhole.test +12 −0 Original line number Diff line number Diff line Loading @@ -147,3 +147,15 @@ set autocommit=1; --replace_column 2 # 5 # --replace_regex /table_id: [0-9]+/table_id: #/ show binlog events; # # BUG#10952 - alter table ... lost data without errors and warnings # drop table if exists t1; create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); --error 1031 alter table t1 engine=blackhole; drop table t1; # End of 5.0 tests mysql-test/r/binlog_stm_blackhole.result +8 −0 Original line number Diff line number Diff line Loading @@ -149,3 +149,11 @@ master-bin.000001 # Query 1 # use `test`; create table t1 (a int) engine=blackho master-bin.000001 # Query 1 # use `test`; BEGIN master-bin.000001 # Query 1 # use `test`; insert into t1 values(1) master-bin.000001 # Query 1 # use `test`; COMMIT drop table if exists t1; Warnings: Note 1051 Unknown table 't1' create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); alter table t1 engine=blackhole; ERROR HY000: Table storage engine for 't1' doesn't have this option drop table t1; mysql-test/r/merge.result +8 −0 Original line number Diff line number Diff line Loading @@ -771,3 +771,11 @@ Table Op Msg_type Msg_text test.t1 check status OK test.t2 check status OK drop table t1, t2, t3; drop table if exists t1; Warnings: Note 1051 Unknown table 't1' create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); alter table t1 engine=MERGE; ERROR HY000: Table storage engine for 't1' doesn't have this option drop table t1; mysql-test/t/merge.test +12 −0 Original line number Diff line number Diff line Loading @@ -382,3 +382,15 @@ check table t1, t2; drop table t1, t2, t3; # End of 4.1 tests # # BUG#10952 - alter table ... lost data without errors and warnings # drop table if exists t1; create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); --error 1031 alter table t1 engine=MERGE; drop table t1; # End of 5.0 tests sql/ha_myisammrg.cc +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ handlerton myisammrg_hton= { NULL, /* Alter table flags */ NULL, /* Alter Tablespace */ NULL, /* Fill Files Table */ HTON_CAN_RECREATE, HTON_CAN_RECREATE | HTON_ALTER_CANNOT_CREATE, NULL, /* binlog_func */ NULL, /* binlog_log_query */ NULL /* release_temporary_latches */ Loading Loading
mysql-test/extra/binlog_tests/blackhole.test +12 −0 Original line number Diff line number Diff line Loading @@ -147,3 +147,15 @@ set autocommit=1; --replace_column 2 # 5 # --replace_regex /table_id: [0-9]+/table_id: #/ show binlog events; # # BUG#10952 - alter table ... lost data without errors and warnings # drop table if exists t1; create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); --error 1031 alter table t1 engine=blackhole; drop table t1; # End of 5.0 tests
mysql-test/r/binlog_stm_blackhole.result +8 −0 Original line number Diff line number Diff line Loading @@ -149,3 +149,11 @@ master-bin.000001 # Query 1 # use `test`; create table t1 (a int) engine=blackho master-bin.000001 # Query 1 # use `test`; BEGIN master-bin.000001 # Query 1 # use `test`; insert into t1 values(1) master-bin.000001 # Query 1 # use `test`; COMMIT drop table if exists t1; Warnings: Note 1051 Unknown table 't1' create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); alter table t1 engine=blackhole; ERROR HY000: Table storage engine for 't1' doesn't have this option drop table t1;
mysql-test/r/merge.result +8 −0 Original line number Diff line number Diff line Loading @@ -771,3 +771,11 @@ Table Op Msg_type Msg_text test.t1 check status OK test.t2 check status OK drop table t1, t2, t3; drop table if exists t1; Warnings: Note 1051 Unknown table 't1' create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); alter table t1 engine=MERGE; ERROR HY000: Table storage engine for 't1' doesn't have this option drop table t1;
mysql-test/t/merge.test +12 −0 Original line number Diff line number Diff line Loading @@ -382,3 +382,15 @@ check table t1, t2; drop table t1, t2, t3; # End of 4.1 tests # # BUG#10952 - alter table ... lost data without errors and warnings # drop table if exists t1; create table t1 (c char(20)) engine=MyISAM; insert into t1 values ("Monty"),("WAX"),("Walrus"); --error 1031 alter table t1 engine=MERGE; drop table t1; # End of 5.0 tests
sql/ha_myisammrg.cc +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ handlerton myisammrg_hton= { NULL, /* Alter table flags */ NULL, /* Alter Tablespace */ NULL, /* Fill Files Table */ HTON_CAN_RECREATE, HTON_CAN_RECREATE | HTON_ALTER_CANNOT_CREATE, NULL, /* binlog_func */ NULL, /* binlog_log_query */ NULL /* release_temporary_latches */ Loading