summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/t/failed_create_view-6409.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/rpl/t/failed_create_view-6409.test')
-rw-r--r--mysql-test/suite/rpl/t/failed_create_view-6409.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/t/failed_create_view-6409.test b/mysql-test/suite/rpl/t/failed_create_view-6409.test
new file mode 100644
index 00000000..5d96e6f8
--- /dev/null
+++ b/mysql-test/suite/rpl/t/failed_create_view-6409.test
@@ -0,0 +1,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