1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-20732 Correctly set the length of the FORMAT() result for float data type as argument.

This commit is contained in:
Gagan Goel
2019-12-30 15:11:01 -05:00
committed by Robert Bindar
parent 1c97cd339e
commit f0ca9bc669
6 changed files with 28 additions and 5 deletions

View File

@ -2708,7 +2708,7 @@ create table t1(a float);
insert into t1 values (1.33);
select format(a, 2) from t1;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def format(a, 2) 253 4 4 Y 0 39 8
def format(a, 2) 253 56 4 Y 0 39 8
format(a, 2)
1.33
drop table t1;