Prechádzať zdrojové kódy

* Use AssignFieldAsStream for stream properties

git-svn-id: trunk@11495 -
michael 17 rokov pred
rodič
commit
d6c475c944
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      packages/fcl-db/src/codegen/fpcgtiopf.pp

+ 1 - 1
packages/fcl-db/src/codegen/fpcgtiopf.pp

@@ -546,7 +546,7 @@ begin
       ptSet :
       ptSet :
         S:=Format('// Add custom set loading code here for %s from %s',[PN,FN]);
         S:=Format('// Add custom set loading code here for %s from %s',[PN,FN]);
       ptStream :
       ptStream :
-        R:=Format('FieldByName(%s).SaveToStream(O.%s);',[SFN,PN]);
+        R:=Format('AssignFieldAsStream(%s,O.%s);',[SFN,PN]);
       ptTStrings :
       ptTStrings :
         R:=Format('O.%s.Text:=FieldAsString[%s];',[PN,SFN]);
         R:=Format('O.%s.Text:=FieldAsString[%s];',[PN,SFN]);
       ptCustom :
       ptCustom :