1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

Fix alignment.

This commit is contained in:
konstantin@mysql.com
2004-09-24 13:50:53 +04:00
parent b5b7801917
commit 7b97b5b007

View File

@@ -4283,6 +4283,7 @@ int Field_str::store(double nr)
use_scientific_notation= TRUE;
if (field_length < 32 && fabs(nr) < log_10[field_length]-1)
use_scientific_notation= FALSE;
length= (uint) my_sprintf(buff, (buff, "%-.*g",
(use_scientific_notation ?
max(0, (int)field_length-5) :