mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
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.
11 lines
215 B
Plaintext
11 lines
215 B
Plaintext
--source alter_sql_mode.inc
|
|
|
|
let $sql_mode = `SELECT @@SQL_MODE`;
|
|
let $error_code = 0;
|
|
|
|
if ($sql_mode == "STRICT_TRANS_TABLES") {
|
|
let $error_code = WARN_DATA_TRUNCATED;
|
|
}
|
|
|
|
--source include/alter_non_null_debug.inc
|