mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
fix: query batch stops at second last query if it has errors but StopOnErrors is off
Refs #2317
This commit is contained in:
@@ -3262,7 +3262,7 @@ begin
|
||||
Inc(FWarningCount, FConnection.WarningCount);
|
||||
except
|
||||
on E:EDbError do begin
|
||||
if FStopOnErrors or (i = FBatch.Count - 1) then begin
|
||||
if FStopOnErrors or (i = FBatch.Count) then begin
|
||||
FErrorMessage := E.Message;
|
||||
ErrorAborted := True;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user