Skip to content

Commit 6e40c62

Browse files
committed
fix: query batch stops at second last query if it has errors but StopOnErrors is off
Refs #2317
1 parent 35a5225 commit 6e40c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/apphelpers.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3262,7 +3262,7 @@ procedure TQueryThread.Execute;
32623262
Inc(FWarningCount, FConnection.WarningCount);
32633263
except
32643264
on E:EDbError do begin
3265-
if FStopOnErrors or (i = FBatch.Count - 1) then begin
3265+
if FStopOnErrors or (i = FBatch.Count) then begin
32663266
FErrorMessage := E.Message;
32673267
ErrorAborted := True;
32683268
end;

0 commit comments

Comments
 (0)