mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
libmysql.c:
Can't return value from void function libmysql/libmysql.c: Can't return value from void function
This commit is contained in:
parent
72987924dd
commit
901c1db483
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue