Browse Source

* Do not depend on TDataset.DataEvent when setting up the test-data

git-svn-id: trunk@10383 -
joost 17 years ago
parent
commit
3bb5a786eb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/fcl-db/tests/dbftoolsunit.pas

+ 4 - 0
packages/fcl-db/tests/dbftoolsunit.pas

@@ -43,6 +43,10 @@ begin
         Append;
         FieldByName('ID').AsInteger := countID;
         FieldByName('NAME').AsString := 'TestName'+inttostr(countID);
+        // Explicitly call .post, since there could be a bug which disturbs
+        // the automatic call to post. (example: when TDataset.DataEvent doesn't
+        // work properly)
+        Post;
         end;
       if state = dsinsert then
         Post;