summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_multi_update2.test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-10-14 00:02:38 +0300
committerunknown <bell@sanja.is.com.ua>2005-10-14 00:02:38 +0300
commit00695490214aca1016e7ecb09a3b142903b1fe78 (patch)
tree478abed536fff8ef1821409f7c91a904a06a3928 /mysql-test/t/rpl_multi_update2.test
parentc8067ec8489dfc1ee96ba89100a9ef067578ffca (diff)
downloadmariadb-git-00695490214aca1016e7ecb09a3b142903b1fe78.tar.gz
- set 'updating' in both tables list if we have two of them (because of subquery) (BUG#13236)
- fixed test mysql-test/r/rpl_multi_update2.result: fixed setting/reseting environment multi-update with subquery added mysql-test/t/rpl_multi_update2.test: fixed setting/reseting environment multi-update with subquery added sql/sql_update.cc: set 'updating' in both tables list if we have two of them (because of subquery)
Diffstat (limited to 'mysql-test/t/rpl_multi_update2.test')
-rw-r--r--mysql-test/t/rpl_multi_update2.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_multi_update2.test b/mysql-test/t/rpl_multi_update2.test
index f92c5504f43..a78b1901f51 100644
--- a/mysql-test/t/rpl_multi_update2.test
+++ b/mysql-test/t/rpl_multi_update2.test
@@ -4,6 +4,10 @@
source include/master-slave.inc;
+--disable_warnings
+drop table if exists t1,t2;
+--enable_warnings
+
CREATE TABLE t1 (
a int unsigned not null auto_increment primary key,
b int unsigned
@@ -32,4 +36,27 @@ sync_with_master;
SELECT * FROM t1 ORDER BY a;
SELECT * FROM t2 ORDER BY a;
+connection master;
+drop table t1,t2;
+sync_slave_with_master;
+
+#
+# BUG#13236 multi-update with subquery & --replicate-ignore-table
+#
+reset master;
+
+connection master;
+CREATE TABLE t1 ( a INT );
+INSERT INTO t1 VALUES (0);
+UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b;
+select * from t1;
+sync_slave_with_master;
+
+connection slave;
+select * from t1;
+
+connection master;
+drop table t1;
+sync_slave_with_master;
+
# End of 4.1 tests