summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorIgnacio Galarza <iggy@mysql.com>2009-03-17 16:29:24 -0400
committerIgnacio Galarza <iggy@mysql.com>2009-03-17 16:29:24 -0400
commit428e28e00c679ca6f3a997e0303604d881e361c3 (patch)
tree3c313f70fd16653491985d8e8108fb5b99f0d5d0 /libmysql/libmysql.c
parent2d9421c3bb7376bcfa5484d94b45df65d67e4468 (diff)
parentec39e58d13f95e455a6553bca3e618e7065707d0 (diff)
downloadmariadb-git-428e28e00c679ca6f3a997e0303604d881e361c3.tar.gz
auto-merge
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 1dd32df7aff..50995601d1f 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -3833,13 +3833,13 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
#undef NOT_FIXED_DEC
{
/*
- The 14 below is to ensure that the server and client has the same
+ DBL_DIG below is to ensure that the server and client has the same
precisions. This will ensure that on the same machine you get the
same value as a string independent of the protocol you use.
*/
sprintf(buff, "%-*.*g", (int) min(sizeof(buff)-1,
param->buffer_length),
- min(14,width), value);
+ min(DBL_DIG, width), value);
end= strcend(buff, ' ');
*end= 0;
}