Commit fb6928cb authored by unknown's avatar unknown
Browse files

Convert exponent results for MYSQL_TYPE_FLOAT on Windows


client/mysqltest.c:
  Do the magic for MYSQL_TYPE_FLOAT as well
parent db16cfc5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 */