mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
backport of Bug#11491 Misleading error message if not NULL column set to NULL, SQL mode TRADITIONAL
This commit is contained in:
@ -378,7 +378,7 @@ id c1 cnt
|
||||
INSERT IGNORE INTO t1 (id,c1) SELECT 1,NULL
|
||||
ON DUPLICATE KEY UPDATE c1=NULL, cnt=cnt+1;
|
||||
Warnings:
|
||||
Warning 1263 Column was set to data type implicit default; NULL supplied for NOT NULL column 'c1' at row 1
|
||||
Warning 1048 Column 'c1' cannot be null
|
||||
Error 1048 Column 'c1' cannot be null
|
||||
SELECT * FROM t1;
|
||||
id c1 cnt
|
||||
@ -386,7 +386,7 @@ id c1 cnt
|
||||
INSERT IGNORE INTO t1 (id,c1) SELECT * FROM t2
|
||||
ON DUPLICATE KEY UPDATE c1=NULL, cnt=cnt+1;
|
||||
Warnings:
|
||||
Warning 1263 Column was set to data type implicit default; NULL supplied for NOT NULL column 'c1' at row 1
|
||||
Warning 1048 Column 'c1' cannot be null
|
||||
Error 1048 Column 'c1' cannot be null
|
||||
SELECT * FROM t1;
|
||||
id c1 cnt
|
||||
|
Reference in New Issue
Block a user