[CP] Improve incorrect value error info for insert/replace into values

This commit is contained in:
obdev
2023-08-25 06:10:27 +00:00
committed by ob-robot
parent f78f3aa8a3
commit 233189cbb1
12 changed files with 114 additions and 64 deletions

View File

@ -52,7 +52,7 @@ insert into t2 (c1, c2) values ('-10', '8');
insert into t2 (c1, c2) values (-12.1, '9');
insert into t2 (c1, c2) values (-13.9, '10');
insert into t2 (c1, c2) values ('abc', '11');
ERROR HY000: Incorrect integer value
ERROR HY000: Incorrect integer value for column 'c1' at row 1
insert into t2 (c1, c2) values (0.0, '12');
select * from t2;
+-----+------+
@ -73,7 +73,7 @@ select * from t2;
insert into t3 (c1, c2) values (NULL, '1');
insert into t3 (c1, c2) values (-1, '2');
ERROR 22003: Out of range value for column
ERROR 22003: Out of range value for column 'c1' at row 1
insert into t3 (c1, c2) values (0, '3');
insert into t3 (c1, c2) values (10, '4');
insert into t3 (c1, c2) values (0, '5');