[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

@ -98,6 +98,8 @@ def ifnull(0, 0.0) 246 23 3 Y 32896 1 63
ifnull(0, 0.0)
0.0
insert into t3 values(0, 2.4, "123");
Warnings:
Warning 1265 Data truncated for column 'b' at row 1
select ifnull(a, b), ifnull(a, c) from t3;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def ifnull(a, b) 246 12 1 Y 32896 0 63

View File

@ -252,6 +252,9 @@ def test t4 t4 a a 246 11 0 Y 32768 0 63
def test t4 t4 b b 246 10 0 Y 32800 0 63
a b
insert into t4 value(0.1,0.2);
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
Warning 1265 Data truncated for column '"test"."t4"."b"' at row 1
select * from t4;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def test t4 t4 a a 246 11 1 Y 32768 0 63