mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for bug#11491 Misleading error message if not NULL column set to NULL,
SQL mode TRADITIONAL Message is chenged from 'ER_WARN_NULL_TO_NOTNULL' to 'ER_BAD_NULL_ERROR' mysql-test/r/auto_increment.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/create.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/insert.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/insert_select.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/key.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/null.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/null_key.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_2myisam.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_3innodb.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_4heap.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_5merge.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_6bdb.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/ps_7ndb.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/strict.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/view.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/r/warnings.result: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL result change mysql-test/t/strict.test: Fix for bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL test change
This commit is contained in:
@ -884,11 +884,11 @@ INSERT INTO t1 (col1,col2,col3) VALUES (NULL, '', '2004-01-01');
|
||||
INSERT INTO t1 (col1,col2,col3) VALUES (102, NULL, '2004-01-01');
|
||||
--error 1048
|
||||
INSERT INTO t1 VALUES (103,'',NULL);
|
||||
--error 1263
|
||||
--error 1048
|
||||
UPDATE t1 SET col1=NULL WHERE col1 =100;
|
||||
--error 1263
|
||||
--error 1048
|
||||
UPDATE t1 SET col2 =NULL WHERE col2 ='hello';
|
||||
--error 1263
|
||||
--error 1048
|
||||
UPDATE t1 SET col2 =NULL where col3 IS NOT NULL;
|
||||
INSERT IGNORE INTO t1 values (NULL,NULL,NULL);
|
||||
SELECT * FROM t1;
|
||||
@ -908,7 +908,7 @@ INSERT INTO t1 (col1) VALUES (2);
|
||||
INSERT INTO t1 VALUES(default(col1),default(col2));
|
||||
--error 1364
|
||||
INSERT INTO t1 (col1) SELECT 1;
|
||||
--error 1263
|
||||
--error 1048
|
||||
INSERT INTO t1 SELECT 1,NULL;
|
||||
INSERT IGNORE INTO t1 values (NULL,NULL);
|
||||
INSERT IGNORE INTO t1 (col1) values (3);
|
||||
|
Reference in New Issue
Block a user