mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 01:29:12 +02:00
* Use factory for fielddefs
git-svn-id: trunk@26786 -
This commit is contained in:
parent
56280f3be9
commit
196d8cee3d
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user