mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 10:02:10 +08:00
Fix issue #1012: Formatting floats and decimals
This commit is contained in:
@ -7632,6 +7632,8 @@ begin
|
||||
for j := 0 to ds.Fields.Count - 1 do begin
|
||||
if res.Columns[j].IsBinary then
|
||||
res.Rows[i].Cells[j].Text := '0x' + BinToWideHex(ds.Fields[j].AsString)
|
||||
else if res.Columns[j].IsFloat then
|
||||
res.Rows[i].Cells[j].Text := FormatFloat('0.0##############################', MakeFloat(ds.Fields[j].AsString))
|
||||
else
|
||||
res.Rows[i].Cells[j].Text := ds.Fields[j].AsWideString;
|
||||
res.Rows[i].Cells[j].IsNull := ds.Fields[j].IsNull;
|
||||
@ -7693,6 +7695,8 @@ begin
|
||||
for j := 0 to ds.Fields.Count - 1 do begin
|
||||
if res.Columns[j].IsBinary then
|
||||
res.Rows[i].Cells[j].Text := '0x' + BinToWideHex(ds.Fields[j].AsString)
|
||||
else if res.Columns[j].IsFloat then
|
||||
res.Rows[i].Cells[j].Text := FormatFloat('0.0##############################', MakeFloat(ds.Fields[j].AsString))
|
||||
else
|
||||
res.Rows[i].Cells[j].Text := ds.Fields[j].AsWideString;
|
||||
res.Rows[i].Cells[j].IsNull := ds.Fields[j].IsNull;
|
||||
|
Reference in New Issue
Block a user