-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-13417 UPDATE produces wrong values if an updated column is later…
… used as an update source replication tests
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
include/master-slave.inc | ||
[connection master] | ||
set sql_mode=simultaneous_assignment; | ||
create table t1 (a int, b int); | ||
insert into t1 values(1, 2); | ||
update t1 set a=b, b=a; | ||
select * from t1; | ||
a b | ||
2 1 | ||
connection slave; | ||
select * from t1; | ||
a b | ||
2 1 | ||
connection master; | ||
drop table t1; | ||
include/rpl_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source include/master-slave.inc; | ||
|
||
# | ||
# MDEV-13417 UPDATE produces wrong values if an updated column is later used as an update source | ||
# | ||
set sql_mode=simultaneous_assignment; | ||
create table t1 (a int, b int); | ||
insert into t1 values(1, 2); | ||
update t1 set a=b, b=a; | ||
select * from t1; | ||
sync_slave_with_master; | ||
select * from t1; | ||
connection master; | ||
drop table t1; | ||
source include/rpl_end.inc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters