fix: query batch stops at second last query if it has errors but StopOnErrors is off

Refs #2317
This commit is contained in:
Ansgar Becker
2025-12-05 13:46:28 +01:00
parent 35a5225198
commit 6e40c6270f

View File

@@ -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;