mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:00:28 +02:00
* Use factory for fielddefs
git-svn-id: trunk@26784 -
This commit is contained in:
parent
60056b260d
commit
d7d4035252
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user