mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 17:09:41 +02:00
* Do not call verbose if EscapeSQL does nothing
This commit is contained in:
parent
b40450d687
commit
3677680c08
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user