Fix syntax error build problem on Windows (variable was defined
in middle of block)
This commit is contained in:
parent
63ae0223b1
commit
3d203e55e6
@ -3876,15 +3876,19 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field,
|
|||||||
sprintf(buff, "%.*f", (int) field->decimals, value);
|
sprintf(buff, "%.*f", (int) field->decimals, value);
|
||||||
end= strend(buff);
|
end= strend(buff);
|
||||||
}
|
}
|
||||||
uint length= (uint) (end-buff);
|
|
||||||
if (field->flags & ZEROFILL_FLAG && length < field->length &&
|
|
||||||
field->length < MAX_DOUBLE_STRING_REP_LENGTH-1)
|
|
||||||
{
|
{
|
||||||
bmove_upp((char*) buff+field->length,buff+length, length);
|
size_t length= end - buff;
|
||||||
bfill((char*) buff, field->length - length,'0');
|
if (field->flags & ZEROFILL_FLAG && length < field->length &&
|
||||||
length= field->length;
|
field->length < MAX_DOUBLE_STRING_REP_LENGTH - 1)
|
||||||
|
{
|
||||||
|
bmove_upp((char*) buff + field->length, buff + length, length);
|
||||||
|
bfill((char*) buff, field->length - length, '0');
|
||||||
|
length= field->length;
|
||||||
|
}
|
||||||
|
fetch_string_with_conversion(param, buff, length);
|
||||||
}
|
}
|
||||||
fetch_string_with_conversion(param, buff, length);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user