mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-16365 Setting a column NOT NULL fails to return error for
NULL values when there is no DEFAULT Copy and inplace algorithm works similarly for NULL to NOT NULL conversion for the following cases: (1) strict sql mode - Should give error. (2) non-strict sql mode - Should give warnings alone (3) alter ignore table command. - Should give warnings alone.
This commit is contained in:
@ -7412,6 +7412,11 @@ static bool mysql_inplace_alter_table(THD *thd,
|
||||
bool reopen_tables= false;
|
||||
bool res;
|
||||
|
||||
/*
|
||||
Set the truncated column values of thd as warning
|
||||
for alter table.
|
||||
*/
|
||||
thd->count_cuted_fields = CHECK_FIELD_WARN;
|
||||
DBUG_ENTER("mysql_inplace_alter_table");
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user