Browse Source

* Now the update-buffers which are linked to a record which is going to be removed are re-linked to the next record, the exception that modify-update buffers are not being re-used upon a delete, is removed.

git-svn-id: trunk@12228 -
joost 16 years ago
parent
commit
07f81f532c
1 changed files with 1 additions and 6 deletions
  1. 1 6
      packages/fcl-db/src/base/bufdataset.pas

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

@@ -1730,12 +1730,7 @@ begin
   for i := StartInd to FIndexesCount-1 do
     findexes[i].RemoveRecordFromIndex(RemRecBookmrk);
 
-// If a modified record is deleted, and GetRecordUpdateBuffer is used, problems
-// may arise. The 'delete' is placed in the update-buffer before the actual delete
-// took place. This can lead into troubles, because other updates can depend on
-// the record still being available.
-  if not GetActiveRecordUpdateBuffer or
-    (FUpdateBuffer[FCurrentUpdateBuffer].UpdateKind = ukModify) then
+  if not GetActiveRecordUpdateBuffer then
     begin
     FCurrentUpdateBuffer := length(FUpdateBuffer);
     SetLength(FUpdateBuffer,FCurrentUpdateBuffer+1);