Browse Source

* Clear FieldDefs before reading them from stream

git-svn-id: trunk@12447 -
joost 16 years ago
parent
commit
5bfc0e094e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/fcl-db/src/base/bufdataset.pas

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

@@ -3023,6 +3023,7 @@ begin
     DatabaseError(SStreamNotRecognised);
 
   FldCount:=Stream.ReadWord;
+  AFieldDefs.Clear;
   for i := 0 to FldCount -1 do with TFieldDef.create(AFieldDefs) do
     begin
     Name := Stream.ReadAnsiString;