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:
Ansgar Becker
2016-01-20 19:36:25 +00:00
parent 03c591ade5
commit 8c5d9e0033

View File

@ -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);