Commit 3650fdcb authored by Andrei Elkin's avatar Andrei Elkin

pushing bug#50942 fixes to 5.1-bt

parents cfb855f2 89c1d53b
...@@ -214,7 +214,7 @@ CREATE TABLE t5 (a int, PRIMARY KEY (a)) ENGINE=InnoDB; ...@@ -214,7 +214,7 @@ CREATE TABLE t5 (a int, PRIMARY KEY (a)) ENGINE=InnoDB;
# execute # execute
--error ER_DUP_ENTRY --error ER_DUP_ENTRY
UPDATE t3,t4 SET t3.a=t4.a + bug27417(1); UPDATE t3,t4 SET t3.a = t4.a + bug27417(1) where t3.a = 1;
# check # check
select count(*) from t1 /* must be 1 */; select count(*) from t1 /* must be 1 */;
......
...@@ -879,11 +879,11 @@ delete from t4; ...@@ -879,11 +879,11 @@ delete from t4;
insert into t3 values (1,1),(2,2); insert into t3 values (1,1),(2,2);
insert into t4 values (1,1),(2,2); insert into t4 values (1,1),(2,2);
reset master; reset master;
UPDATE t3,t4 SET t3.a=t4.a + bug27417(1); UPDATE t3,t4 SET t3.a = t4.a + bug27417(1) where t3.a = 1;
ERROR 23000: Duplicate entry '2' for key 'PRIMARY' ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
select count(*) from t1 /* must be 1 */; select count(*) from t1 /* must be 1 */;
count(*) count(*)
2 1
drop table t4; drop table t4;
delete from t1; delete from t1;
delete from t2; delete from t2;
......
...@@ -802,7 +802,7 @@ delete from t4; ...@@ -802,7 +802,7 @@ delete from t4;
insert into t3 values (1,1),(2,2); insert into t3 values (1,1),(2,2);
insert into t4 values (1,1),(2,2); insert into t4 values (1,1),(2,2);
reset master; reset master;
UPDATE t3,t4 SET t3.a=t4.a + bug27417(1); UPDATE t3,t4 SET t3.a = t4.a + bug27417(1) where t3.a = 1;
ERROR 23000: Duplicate entry '2' for key 'PRIMARY' ERROR 23000: Duplicate entry '2' for key 'PRIMARY'
select count(*) from t1 /* must be 1 */; select count(*) from t1 /* must be 1 */;
count(*) count(*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment