1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

- set 'updating' in both tables list if we have two of them (because of subquery) (BUG#13236)

- fixed test
This commit is contained in:
bell@sanja.is.com.ua
2005-10-14 00:02:38 +03:00
parent 829a4831b1
commit 6d6e107f12
3 changed files with 46 additions and 2 deletions

View File

@@ -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