mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
parent
a1d960418c
commit
411ef7d7b6
1 changed files with 3 additions and 2 deletions
|
|
@ -3487,10 +3487,11 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
|
|||
char *end;
|
||||
/* TODO: move this to a header shared between client and server. */
|
||||
#define NOT_FIXED_DEC 31
|
||||
if (field->decimals >= 31)
|
||||
if (field->decimals >= NOT_FIXED_DEC)
|
||||
#undef NOT_FIXED_DEC
|
||||
{
|
||||
sprintf(buff, "%-*.*g", (int) min(330, param->buffer_length), width, value);
|
||||
sprintf(buff, "%-*.*g", (int) min(sizeof(buff)-1, param->buffer_length),
|
||||
width, value);
|
||||
end= strcend(buff, ' ');
|
||||
*end= 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue