* Use factory for fielddefs

git-svn-id: trunk@26784 -
This commit is contained in:
michael 2014-02-15 10:48:35 +00:00
parent 60056b260d
commit d7d4035252

View File

@ -1302,7 +1302,7 @@ begin
end;
// add FieldDef
with TFieldDef.Create(FieldDefs, FieldDefs.MakeNameUnique(ColName), FieldType, FieldSize, (Nullable=SQL_NO_NULLS) and (AutoIncAttr=SQL_FALSE), i) do
with FieldDefs.Add(FieldDefs.MakeNameUnique(ColName), FieldType, FieldSize, (Nullable=SQL_NO_NULLS) and (AutoIncAttr=SQL_FALSE), i) do
begin
if Updatable = SQL_ATTR_READONLY then Attributes := Attributes + [faReadonly];
end;