Browse Source

* Do not call verbose if EscapeSQL does nothing

Michaël Van Canneyt 5 months ago
parent
commit
3677680c08
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/utils/tsdb.pp

+ 2 - 1
tests/utils/tsdb.pp

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