Explorar o código

* Do not change the active record when updating the buffersize

git-svn-id: trunk@6135 -
joost %!s(int64=18) %!d(string=hai) anos
pai
achega
13b6444b07
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      fcl/db/dataset.inc

+ 4 - 1
fcl/db/dataset.inc

@@ -878,7 +878,10 @@ begin
 {$endif}
   GetNextRecords;
   if FRecordCount < FBufferCount then
-    GetPriorRecords;
+    begin
+    FActiveRecord := FActiveRecord + GetPriorRecords;
+    CursorPosChanged;
+    end;
 {$Ifdef dsDebug}
   WriteLn(
     'SetBufferCount: FActiveRecord=',FActiveRecord,