From 01ddf969302247de612ae5a1f0253047169f481a Mon Sep 17 00:00:00 2001 From: "msvensson@neptunus.(none)" <> Date: Thu, 2 Feb 2006 11:45:37 +0100 Subject: [PATCH] Convert exponent results for MYSQL_TYPE_FLOAT on Windows --- client/mysqltest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/mysqltest.c b/client/mysqltest.c index 24be5de8021..3179535347d 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -3059,7 +3059,8 @@ static void append_field(DYNAMIC_STRING *ds, uint col_idx, MYSQL_FIELD* field, len= 4; } #ifdef __WIN__ - else if (field->type == MYSQL_TYPE_DOUBLE && + else if ((field->type == MYSQL_TYPE_DOUBLE || + field->type == MYSQL_TYPE_FLOAT ) && field->decimals >= 31) { /* Convert 1.2e+018 to 1.2e+18 and 1.2e-018 to 1.2e-18 */