소스 검색

* 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 17 년 전
부모
커밋
07f81f532c
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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);