* Use factory for fielddefs

git-svn-id: trunk@26786 -
This commit is contained in:
michael 2014-02-15 10:48:52 +00:00
parent 56280f3be9
commit 196d8cee3d

View File

@ -701,7 +701,7 @@ begin
FieldType := ftAutoInc;
end;
with TFieldDef.Create(FieldDefs, FieldDefs.MakeNameUnique(FieldName), FieldType, FieldSize, (col.Null=0) and (not col.Identity), i) do
with FieldDefs.Add(FieldDefs.MakeNameUnique(FieldName), FieldType, FieldSize, (col.Null=0) and (not col.Identity), i) do
begin
// identity, timestamp and calculated column are not updatable
if col.Updatable = 0 then Attributes := Attributes + [faReadonly];