Browse Source

* Fixed stringreplace in EscapeSQL

git-svn-id: trunk@28452 -
michael 11 years ago
parent
commit
5fa452d42f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/utils/dbtests.pp

+ 1 - 1
tests/utils/dbtests.pp

@@ -201,7 +201,7 @@ Function EscapeSQL( S : String) : String;
 
 
 begin
 begin
 //  Result:=StringReplace(S,'\','\\',[rfReplaceAll]);
 //  Result:=StringReplace(S,'\','\\',[rfReplaceAll]);
-  Result:=StringReplace(Result,'''','''''',[rfReplaceAll]);
+  Result:=StringReplace(S,'''','''''',[rfReplaceAll]);
   Verbose(V_SQL,'EscapeSQL : "'+S+'" -> "'+Result+'"');
   Verbose(V_SQL,'EscapeSQL : "'+S+'" -> "'+Result+'"');
 end;
 end;