mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
78a3abeced
Problem: Many test cases don't clean up after themselves (fail to drop tables or fail to reset variables). This implies that: (1) check-testcase in the new mtr that currently lives in 5.1-rpl failed. (2) it may cause unexpected results in subsequent tests. Fix: make all tests clean up. Also: cleaned away unnecessary output in rpl_packet.result Also: fixed bug where rpl_log called RESET MASTER with a running slave. This is not supposed to work. Also: removed unnecessary code from rpl_stm_EE_err2 and made it verify that an error occurred. Also: removed unnecessary code from rpl_ndb_ctype_ucs2_def.
36 lines
783 B
Text
36 lines
783 B
Text
# test case for bug#30998
|
|
# Drop View breaks replication if view does not exist
|
|
#
|
|
|
|
source include/master-slave.inc;
|
|
--disable_warnings
|
|
drop table if exists t1, t2;
|
|
drop view if exists v1, v2, v3, not_exist_view;
|
|
--enable_warnings
|
|
create table t1 (a int);
|
|
create table t2 (b int);
|
|
create table t3 (c int);
|
|
create view v1 as select * from t1;
|
|
create view v2 as select * from t2;
|
|
create view v3 as select * from t3;
|
|
--error 1051
|
|
drop view not_exist_view;
|
|
--error 1051
|
|
drop view v1, not_exist_view;
|
|
--error 1146
|
|
select * from v1;
|
|
drop view v2, v3;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
--error 1146
|
|
select * from v1;
|
|
--error 1146
|
|
select * from v2;
|
|
--error 1146
|
|
select * from v3;
|
|
|
|
--echo ==== clean up ====
|
|
connection master;
|
|
drop table t1, t2, t3;
|
|
sync_slave_with_master;
|