mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-28959 Online alter ignores strict table mode
* don't disable warnings when catching up * do propagate warnings up like copy_data_between_tables() does
This commit is contained in:
@ -720,3 +720,29 @@ set debug_sync= 'reset';
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
drop table t3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-28959 Online alter ignores strict table mode
|
||||
--echo #
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1),(2),(3);
|
||||
--send set debug_sync= 'now wait_for downgraded'
|
||||
|
||||
--connection con2
|
||||
set sql_mode='STRICT_TRANS_TABLES,STRICT_ALL_TABLES';
|
||||
set debug_sync= 'alter_table_online_downgraded signal downgraded wait_for goforit';
|
||||
--send alter table t1 modify a int not null, algorithm=copy, lock=none
|
||||
|
||||
--connection default
|
||||
--reap
|
||||
insert into t1 values (null),(null);
|
||||
set debug_sync= 'now signal goforit';
|
||||
|
||||
--connection con2
|
||||
--error WARN_DATA_TRUNCATED
|
||||
--reap
|
||||
show create table t1;
|
||||
select * from t1;
|
||||
--connection default
|
||||
drop table t1;
|
||||
set debug_sync= reset;
|
||||
|
Reference in New Issue
Block a user