From f9e896fedea4c5a34efe114c1ffcb9850d82c909 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sat, 5 Nov 2011 07:26:32 +0000 Subject: [PATCH] Unformat local formatted floats in WHERE clause for grid updates. Probably fixes issue #2558. --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 438150a7..88487a6f 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -4335,7 +4335,7 @@ begin if DataType(j).Index = dtBit then Result := Result + '=b' + Connection.EscapeString(ColVal) else - Result := Result + '=' + ColVal; + Result := Result + '=' + UnformatNumber(ColVal); end; dtcBinary: Result := Result + '=' + HexValue(ColVal);