stop slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; drop table if exists t1,v1; drop view if exists t1,v1; reset master; create table t1 (a int); insert into t1 values (1); create view v1 as select a from t1; insert into v1 values (2); select * from v1 order by a; a 1 2 select * from v1 order by a; a 1 2 update v1 set a=3 where a=1; select * from v1 order by a; a 2 3 select * from v1 order by a; a 2 3 delete from v1 where a=2; select * from v1 order by a; a 3 select * from v1 order by a; a 3 alter view v1 as select a as b from t1; select * from v1 order by 1; b 3 drop view v1; select * from v1 order by a; ERROR 42S02: Table 'test.v1' doesn't exist drop table t1; ---> Test for BUG#20438 ---> Preparing environment... ---> connection: master DROP TABLE IF EXISTS t1; DROP VIEW IF EXISTS v1; ---> Synchronizing slave with master... ---> connection: master ---> Creating objects... CREATE TABLE t1(c INT); /*!50003 CREATE VIEW v1 AS SELECT * FROM t1 */; ---> Inserting value... INSERT INTO t1 VALUES(1); ---> Checking on master... SELECT * FROM t1; c 1 ---> Synchronizing slave with master... ---> connection: master ---> Checking on slave... SELECT * FROM t1; c 1 ---> connection: master ---> Cleaning up... DROP VIEW v1; DROP TABLE t1; End of 5.0 tests