Explorar o código

fcl-db: base: TBCDField.GetDefaultWidth should return Precision+1 (Delphi compatible) insted of only Precision (+1 is for sign and/or decimal separator).
Note: TBCDField in constructor sets FPrecision=15, which is IMHO copied from TFloatField. In case of TBCDField it should be probably 18 - MaxBCDPrecision

git-svn-id: trunk@30684 -

lacak %!s(int64=10) %!d(string=hai) anos
pai
achega
2eb2791ce9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-db/src/base/fields.inc

+ 1 - 1
packages/fcl-db/src/base/fields.inc

@@ -2492,7 +2492,7 @@ end;
 function TBCDField.GetDefaultWidth: Longint;
 
 begin
-  if Precision > 0 then Result := Precision
+  if Precision > 0 then Result := Precision+1
   else Result := 10;
 end;