Bug #108429 format_bytes length bug
Submitted: 8 Sep 2022 13:52 Modified: 8 Sep 2022 18:16
Reporter: Feng Jing Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[8 Sep 2022 13:52] Feng Jing
Description:
select format_bytes(-1071050000);
-1021.43 MiB
the length is 12

How to repeat:
select format_bytes(-1071050000);

Suggested fix:
set the type is varchar(12)
[8 Sep 2022 18:16] MySQL Verification Team
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

https://bugs.mysql.com/bug.php?id=108428

Thank you for your interest in MySQL.