Browse Source

* Also for Oracle: TBCDField.Size should contain the amount of digits after the decimal-sign, not the full size (bug 11544)

git-svn-id: trunk@11279 -
joost 17 years ago
parent
commit
fdd8ad7608
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqldb/oracle/oracleconnection.pp

+ 1 - 1
packages/fcl-db/src/sqldb/oracle/oracleconnection.pp

@@ -367,7 +367,7 @@ begin
                                 else if (oscale <=4) and (OPrecision<=12) then
                                 else if (oscale <=4) and (OPrecision<=12) then
                                   begin
                                   begin
                                   FieldType := ftBCD;
                                   FieldType := ftBCD;
-                                  FieldSize := sizeof(Currency);
+                                  FieldSize := oscale;
                                   OFieldType := SQLT_VNU;
                                   OFieldType := SQLT_VNU;
                                   OFieldSize:= 22;
                                   OFieldSize:= 22;
                                   end
                                   end