mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
unpack_row: set the correct fields in has_value_set for online alter
This commit is contained in:
committed by
Sergei Golubchik
parent
ecb9db4c3d
commit
af82d56a51
@ -1498,6 +1498,35 @@ set debug_sync= "now signal end";
|
||||
--reap
|
||||
drop table t;
|
||||
|
||||
--echo #
|
||||
--echo # Test that correct fields are marked as explicit:
|
||||
--echo # Drop a, reorder b, add new column with default.
|
||||
--echo #
|
||||
create table t (a int primary key, b int) engine=innodb;
|
||||
insert into t values (1, 1), (2, 2), (3, 3);
|
||||
|
||||
set debug_sync= "alter_table_copy_end signal copy wait_for goon";
|
||||
send alter table t drop primary key, drop a,
|
||||
change b c bigint,
|
||||
add x longblob default 123456;
|
||||
|
||||
--connection con1
|
||||
set debug_sync= "now wait_for copy";
|
||||
|
||||
update t set b = 5 where a = 1;
|
||||
update t set b = NULL where a = 1;
|
||||
select * from t;
|
||||
update t set a = 100 where a = 1;
|
||||
update t set b = -10 where a = 100;
|
||||
select * from t;
|
||||
|
||||
set debug_sync= "now signal goon";
|
||||
|
||||
--connection default
|
||||
--reap
|
||||
select * from t;
|
||||
drop table t;
|
||||
|
||||
|
||||
set debug_sync= reset;
|
||||
--disconnect con1
|
||||
|
Reference in New Issue
Block a user