[CP] Compatible with mysql decimal truncate warning display

This commit is contained in:
hezuojiao
2024-04-12 11:45:57 +00:00
committed by ob-robot
parent b6c2b9f411
commit d0413d0c8d
36 changed files with 277 additions and 32 deletions

View File

@ -35,6 +35,8 @@ drop table t1;
create table t1 (f1 char(100) , f2 mediumint , f3 int , f4 real, f5 numeric);
insert into t1 (f1, f2, f3, f4, f5) values
("This is a test case for for Bug#9819", 1, 2, 3.0, 4.598);
Warnings:
Warning 1265 Data truncated for column 'f5' at row 1
create table t2 like t1;
select count(*) from t1;
+----------+