mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 03:30:50 +08:00
Try a safe-fix on a suspicious line which could cause bug #868 (during login heidi crashes)
This commit is contained in:
@ -2334,8 +2334,8 @@ begin
|
|||||||
avg_persec := '';
|
avg_persec := '';
|
||||||
|
|
||||||
// Format numeric or byte values
|
// Format numeric or byte values
|
||||||
valIsBytes := Copy(ds.Fields[0].AsWideString, 1, 6) = 'Bytes_';
|
|
||||||
valIsNumber := IntToStr(MakeInt(val)) = val;
|
valIsNumber := IntToStr(MakeInt(val)) = val;
|
||||||
|
valIsBytes := valIsNumber and (Copy(ds.Fields[0].AsWideString, 1, 6) = 'Bytes_');
|
||||||
if valIsBytes then
|
if valIsBytes then
|
||||||
val := FormatByteNumber(val)
|
val := FormatByteNumber(val)
|
||||||
else if valIsNumber then
|
else if valIsNumber then
|
||||||
|
Reference in New Issue
Block a user