mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix fur BUG#13348: "multi-table updates and deletes are not logged if no rows were affected".
Not fixed in 4.1 as not critical. Also I'm correcting error checking of multi-UPDATE/DELETE when it comes to binlogging, to make it consistent with when we rollback the statement.
This commit is contained in:
@ -24,3 +24,16 @@ a b
|
||||
1 0
|
||||
2 1
|
||||
UPDATE t1, t2 SET t1.b = t2.b WHERE t1.a = t2.a;
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
insert into t1 values(1,1);
|
||||
insert into t2 values(1,1);
|
||||
update t1 set a=2;
|
||||
UPDATE t1, t2 SET t1.a = t2.a;
|
||||
select * from t1;
|
||||
a b
|
||||
1 1
|
||||
select * from t2;
|
||||
a b
|
||||
1 1
|
||||
drop table t1, t2;
|
||||
|
Reference in New Issue
Block a user