mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Fix unquoted and uncleaned numeric values in data grid updates and inserts. See http://www.heidisql.com/forum.php?t=20434
This commit is contained in:
@ -6381,9 +6381,9 @@ begin
|
|||||||
Val := Cell.NewText
|
Val := Cell.NewText
|
||||||
else case Datatype(i).Category of
|
else case Datatype(i).Category of
|
||||||
dtcInteger, dtcReal: begin
|
dtcInteger, dtcReal: begin
|
||||||
Val := Cell.NewText;
|
Val := Connection.EscapeString(Cell.NewText);
|
||||||
if (Datatype(i).Index = dtBit) and FConnection.Parameters.IsMySQL then
|
if (Datatype(i).Index = dtBit) and FConnection.Parameters.IsMySQL then
|
||||||
Val := 'b' + Connection.EscapeString(Val);
|
Val := 'b' + Val;
|
||||||
end;
|
end;
|
||||||
dtcBinary, dtcSpatial:
|
dtcBinary, dtcSpatial:
|
||||||
Val := HexValue(Cell.NewText);
|
Val := HexValue(Cell.NewText);
|
||||||
|
Reference in New Issue
Block a user