mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix write_set too
* in online ALTER it must include the complete new row, note that an UPDATE should set all extra columns to their default values, as if UPDATE was completely done before the ALTER. * in rpl WRITE_ROWS_EVENT it must include all extra slave columns, but not existing columns unmarked in the m_cols (sequences do that) * in rpl UPDATE/DELETE events it should follow m_cols_ai also: default values must be updated for WRITE_ROWS_EVENT and for UPDATE/DELETE in the online ALTER mode, see above. Update the result file accordingly. Extend bitmap_copy() to support arguments of different lengths
This commit is contained in:
@@ -62,12 +62,12 @@ a
|
||||
connection slave;
|
||||
select * from t1 order by a;
|
||||
a z1 z2 z3
|
||||
11 12 13 13
|
||||
12 13 14 14
|
||||
13 14 15 15
|
||||
14 15 16 16
|
||||
15 16 17 17
|
||||
16 17 18 18
|
||||
11 12 13 3
|
||||
12 13 14 4
|
||||
13 14 15 5
|
||||
14 15 16 6
|
||||
15 16 17 7
|
||||
16 17 18 8
|
||||
connection master;
|
||||
update t1 set a = a-10;
|
||||
select * from t1 order by a;
|
||||
@@ -147,7 +147,7 @@ a z1 z2 z3
|
||||
4 5 6 6
|
||||
5 6 7 7
|
||||
6 7 8 8
|
||||
13 14 15 15
|
||||
13 14 15 5
|
||||
connection master;
|
||||
update t1 set a = a - 10 where a = 13;
|
||||
select * from t1 order by a;
|
||||
|
Reference in New Issue
Block a user