Explorar el Código

* Clear FieldDefs before reading them from stream

git-svn-id: trunk@12447 -
joost hace 16 años
padre
commit
5bfc0e094e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;