浏览代码

* Do not call verbose if EscapeSQL does nothing

Michaël Van Canneyt 9 月之前
父节点
当前提交
3677680c08
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;