* patch from mantis #12928 fixing precision of numeric type. FPC specific patch (but no effect on Delphi, so compat).

git-svn-id: trunk@18035 -
This commit is contained in:
marco 2011-07-29 10:57:34 +00:00
parent 72dcf89350
commit 0976115115

View File

@ -1040,7 +1040,10 @@ begin
FieldDefs.Add(TempFieldDef.FieldName, TempFieldDef.FieldType, 0, false);
if TempFieldDef.FieldType = ftFloat then
FieldDefs[I].Precision := TempFieldDef.Precision;
begin
FieldDefs[I].Size := 0; // Size is not defined for float-fields
FieldDefs[I].Precision := TempFieldDef.Size;
end;
{$ifdef SUPPORT_FIELDDEF_ATTRIBUTES}
// AutoInc fields are readonly