mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
1907bf042a
fix by Sriram Patil
24 lines
443 B
Text
24 lines
443 B
Text
#
|
|
# 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
|