Browse Source

* Fix non-initialized variable in DoApplyUpdate. Fixes issue #41400

Michaël Van Canneyt 3 days ago
parent
commit
9e116eb196
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-db/src/base/bufdataset.pas

+ 1 - 0
packages/fcl-db/src/base/bufdataset.pas

@@ -2970,6 +2970,7 @@ Const
 begin
   Result.Async:=False;
   Result.Response:=rrApply;
+  Result.HadError:=False;
   // If the record is first inserted and afterwards deleted, do nothing
   if ((aUpdate.UpdateKind=ukDelete) and not (assigned(aUpdate.OldValuesBuffer))) then
     exit;