mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Don't quote numeric values in grid export as SQL. See: http://www.heidisql.com/forum.php?t=4885
This commit is contained in:
@ -1194,9 +1194,10 @@ begin
|
||||
// Remove 0x.
|
||||
if GridData.Columns[i].DatatypeCat = dtcBinary then Delete(Data, 1, 2);
|
||||
// Unformat numeric values
|
||||
if GridData.Columns[i].DatatypeCat in [dtcInteger, dtcReal] then Data := UnformatNumber(Data);
|
||||
// Add data and cell end tag.
|
||||
tmp := tmp + esc(Data);
|
||||
if GridData.Columns[i].DatatypeCat in [dtcInteger, dtcReal] then
|
||||
tmp := tmp + UnformatNumber(Data)
|
||||
else
|
||||
tmp := tmp + esc(Data);
|
||||
end;
|
||||
tmp := tmp + ', ';
|
||||
end;
|
||||
|
Reference in New Issue
Block a user