From 08d0a095a7c922a2f313f02a57df3d56f70b33ba Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 12 Feb 2012 09:28:19 +0000 Subject: [PATCH] Do not double-unformat numbers in automatic grid WHERE clause. Fixes issue #2608. --- source/dbconnection.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index b4d11c79..72da5493 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -4336,7 +4336,7 @@ begin if DataType(j).Index = dtBit then Result := Result + '=b' + Connection.EscapeString(ColVal) else - Result := Result + '=' + UnformatNumber(ColVal); + Result := Result + '=' + ColVal; end; dtcBinary: Result := Result + '=' + HexValue(ColVal);