summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-09-24 13:50:53 +0400
committerunknown <konstantin@mysql.com>2004-09-24 13:50:53 +0400
commit306e37e6f1170c520f95756abdb3600dc173de37 (patch)
treef1385192580eaa804c98789774a1139c973140a5 /sql/field.cc
parent15ef828bb92f81b78d90faeba1ebe4277c7b5109 (diff)
downloadmariadb-git-306e37e6f1170c520f95756abdb3600dc173de37.tar.gz
Fix alignment.
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 8a1c5ec5271..17a89ad02c1 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -4281,8 +4281,9 @@ int Field_str::store(double nr)
uint length;
bool 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;
+
length= (uint) my_sprintf(buff, (buff, "%-.*g",
(use_scientific_notation ?
max(0, (int)field_length-5) :