Commit 901c1db4 authored by unknown's avatar unknown

libmysql.c:

  Can't return value from void function


libmysql/libmysql.c:
  Can't return value from void function
parent 72987924
......@@ -3277,7 +3277,8 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
char buff[22]; /* Enough for longlong */
char *end= longlong10_to_str(value, buff, field_is_unsigned ? 10: -10);
/* Resort to string conversion which supports all typecodes */
return fetch_string_with_conversion(param, buff, end - buff);
fetch_string_with_conversion(param, buff, end - buff);
break;
}
}
}
......@@ -3349,10 +3350,11 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
}
else
{
sprintf(buff, "%.*f", field->decimals, value);
sprintf(buff, "%.*f", (int) field->decimals, value);
end= strend(buff);
}
return fetch_string_with_conversion(param, buff, end - buff);
fetch_string_with_conversion(param, buff, end - buff);
break;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment