* Do not call verbose if EscapeSQL does nothing

This commit is contained in:
Michaël Van Canneyt 2025-03-02 12:15:22 +01:00
parent b40450d687
commit 3677680c08

View File

@ -463,7 +463,8 @@ class function TTestSQL.EscapeSQL(const S: String): String;
begin
// Result:=StringReplace(S,'\','\\',[rfReplaceAll]);
Result:=StringReplace(S,'''','''''',[rfReplaceAll]);
tsutils.Verbose(V_SQL,'EscapeSQL : "'+S+'" -> "'+Result+'"');
if (Result<>S) then
tsutils.Verbose(V_SQL,'EscapeSQL : "'+S+'" -> "'+Result+'"');
end;