summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/t/failed_create_view-6409.test
blob: 5d96e6f8a9375f7575b3240b0056cb18fb5d87d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# MDEV-6409 CREATE VIEW replication problem if error occurs in mysql_register_view
#

#
#
# verify that failed CREATE VIEW is not replicated

create table v1 (a int);

source include/master-slave.inc;

connection master;
create table t1 (a int);
--error ER_TABLE_EXISTS_ERROR
create view v1 as select * from t1;
show tables;
sync_slave_with_master;
show tables;

connection master;
drop table if exists t1, v1;

--source include/rpl_end.inc