From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/suite/rpl/r/rpl_view_debug.result | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 mysql-test/suite/rpl/r/rpl_view_debug.result (limited to 'mysql-test/suite/rpl/r/rpl_view_debug.result') diff --git a/mysql-test/suite/rpl/r/rpl_view_debug.result b/mysql-test/suite/rpl/r/rpl_view_debug.result new file mode 100644 index 00000000..1ec3dda9 --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_view_debug.result @@ -0,0 +1,41 @@ +include/master-slave.inc +[connection master] +# +# MDEV-6409 CREATE VIEW replication problem if error occurs in mysql_register_view +# +# Check the bug where if an error occurs in mysql_register_view the view +# is still replicated to the slave +# +connection 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 +connection slave; +show tables; +Tables_in_test +t1 +v1 +connection master; +SET @saved_dbug = @@SESSION.debug_dbug; +set @@debug_dbug="d,simulate_register_view_failure"; +CREATE VIEW v2 as SELECT * FROM t1; +ERROR HY000: Out of memory. +show tables; +Tables_in_test +t1 +v1 +connection slave; +show tables; +Tables_in_test +t1 +v1 +connection master; +DROP VIEW IF EXISTS v1; +DROP TABLE t1; +SET debug_dbug= @saved_dbug; +include/rpl_end.inc -- cgit v1.2.3