mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Issue #1965: show warnings from some internal queries as well, and when running an SQL file
This commit is contained in:
@ -3160,15 +3160,7 @@ begin
|
||||
end;
|
||||
FConnection.LockedByThread := nil;
|
||||
Synchronize(procedure begin MainForm.AfterQueryExecution(Self); end);
|
||||
// Show warnings and notes in log panel
|
||||
if FConnection.WarningCount > 0 then begin
|
||||
Warnings := FConnection.GetResults('SHOW WARNINGS');
|
||||
while not Warnings.Eof do begin
|
||||
FConnection.Log(lcError, Warnings.Col('Level') + ': ('+Warnings.Col('Code')+') ' + Warnings.Col('Message'));
|
||||
Warnings.Next;
|
||||
end;
|
||||
Warnings.Free;
|
||||
end;
|
||||
FConnection.ShowWarnings;
|
||||
// Check if FAborted is set by the main thread, to avoid proceeding the loop in case
|
||||
// FStopOnErrors is set to false
|
||||
if FAborted or ErrorAborted then
|
||||
|
Reference in New Issue
Block a user