mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Fix alignment.
This commit is contained in:
@@ -4281,8 +4281,9 @@ int Field_str::store(double nr)
|
|||||||
uint length;
|
uint length;
|
||||||
bool use_scientific_notation= TRUE;
|
bool use_scientific_notation= TRUE;
|
||||||
use_scientific_notation= TRUE;
|
use_scientific_notation= TRUE;
|
||||||
if (field_length < 32 && fabs(nr) < log_10[field_length]-1)
|
if (field_length < 32 && fabs(nr) < log_10[field_length]-1)
|
||||||
use_scientific_notation= FALSE;
|
use_scientific_notation= FALSE;
|
||||||
|
|
||||||
length= (uint) my_sprintf(buff, (buff, "%-.*g",
|
length= (uint) my_sprintf(buff, (buff, "%-.*g",
|
||||||
(use_scientific_notation ?
|
(use_scientific_notation ?
|
||||||
max(0, (int)field_length-5) :
|
max(0, (int)field_length-5) :
|
||||||
|
Reference in New Issue
Block a user