1
0
mirror of https://github.com/MariaDB/server.git synced 2025-06-12 01:53:02 +03:00

libmysql.c:

Can't return value from void function
This commit is contained in:
kent@mysql.com
2004-08-06 18:03:27 +02:00
parent adb35b41df
commit a3ea1e2339

View File

@ -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;
}
}
}