mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix issue #991: Termination char ; in SQL log.
This commit is contained in:
@@ -3335,22 +3335,21 @@ var
|
||||
begin
|
||||
// Shorten very long messages
|
||||
snip := (prefLogSqlWidth > 0) and (Length(msg) > prefLogSqlWidth);
|
||||
if snip then
|
||||
begin
|
||||
if snip then begin
|
||||
msg :=
|
||||
Copy( msg, 0, prefLogSqlWidth ) +
|
||||
'/* large SQL query, snipped at ' +
|
||||
FormatNumber( prefLogSqlWidth ) +
|
||||
' characters */';
|
||||
end;
|
||||
end else if (not snip) and (not comment) then
|
||||
msg := msg + Delimiter
|
||||
else if comment then
|
||||
msg := '/* ' + msg + ' */';
|
||||
|
||||
msg := WideStringReplace( msg, #9, ' ', [rfReplaceAll] );
|
||||
msg := WideStringReplace( msg, #10, ' ', [rfReplaceAll] );
|
||||
msg := WideStringReplace( msg, #13, ' ', [rfReplaceAll] );
|
||||
msg := WideStringReplace( msg, ' ', ' ', [rfReplaceAll] );
|
||||
if ( comment ) then
|
||||
begin
|
||||
msg := '/* ' + msg + ' */';
|
||||
end;
|
||||
|
||||
EnterCriticalSection(SqlMessagesLock);
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user