Parcourir la source

* Fixed stringreplace in EscapeSQL

git-svn-id: trunk@28452 -
michael il y a 11 ans
Parent
commit
5fa452d42f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/utils/dbtests.pp

+ 1 - 1
tests/utils/dbtests.pp

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