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:
@ -1086,6 +1086,9 @@ test t2 idx4 3 1.1304
|
||||
ANALYZE TABLE t2 PERSISTENT FOR COLUMNS() INDEXES ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 analyze status Engine-independent statistics collected
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze status OK
|
||||
SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
|
||||
db_name table_name index_name prefix_arity avg_frequency
|
||||
@ -1146,6 +1149,11 @@ test t2 idx4 4 1.0000
|
||||
ANALYZE TABLE t2 PERSISTENT FOR COLUMNS ALL INDEXES ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 analyze status Engine-independent statistics collected
|
||||
test.t2 analyze Note Data truncated for column 'avg_length' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze status OK
|
||||
SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
|
||||
db_name table_name index_name prefix_arity avg_frequency
|
||||
@ -1171,6 +1179,8 @@ test t2 idx3 1 8.5000
|
||||
ANALYZE TABLE t2 PERSISTENT FOR COLUMNS() INDEXES ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 analyze status Engine-independent statistics collected
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze Note Data truncated for column 'avg_frequency' at row 1
|
||||
test.t2 analyze status OK
|
||||
SELECT * FROM mysql.index_stats ORDER BY index_name, prefix_arity, table_name;
|
||||
db_name table_name index_name prefix_arity avg_frequency
|
||||
|
Reference in New Issue
Block a user