Browse Source

+ moved InternalInitRecord from Clearbuffers to Resync

git-svn-id: trunk@3210 -
joost 19 years ago
parent
commit
8f5e0c8d81
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fcl/db/dataset.inc

+ 2 - 2
fcl/db/dataset.inc

@@ -162,8 +162,6 @@ Procedure TDataset.ClearBuffers;
 begin
   FRecordCount:=0;
   FactiveRecord:=0;
-  // Make sure that the active record is 'empty', ie: that all fields are null
-  InternalInitRecord(ActiveBuffer);
   FCurrentRecord:=-1;
   FBOF:=True;
   FEOF:=True;
@@ -1812,6 +1810,8 @@ begin
 {$endif}
       // nothing found, invalidate buffer and bail out.
       ClearBuffers;
+      // Make sure that the active record is 'empty', ie: that all fields are null
+      InternalInitRecord(ActiveBuffer);
       DataEvent(deDatasetChange,0);
       exit;
       end;