[Firebird 4] Numeric/Decimal support with 19-38 precision
---------------------------------------------------------

                 Key: DNET-990
                 URL: http://tracker.firebirdsql.org/browse/DNET-990
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 7.10.1.0, 7.10.0.0
         Environment: Firebird 4.0 beta 2
            Reporter: mace windu
            Assignee: Jiri Cincura


Looks like support  for increased precision for numeric/decimal types in 
Firebird 4 is currently missing as quering data of such type results in 
exception.

ArgumentOutOfRangeException: 'type=32752 ' (or 32753 when reading from table 
column)
   at FirebirdSql.Data.Client.Managed.XdrReaderWriter.ReadDecimal(Int32 type, 
Int32 scale)


using (var cn = new FbConnection("..."))
{
  cn.Open();
  using (var cmd = cn.CreateCommand())
  {
    cmd.CommandText = "SELECT CAST(1 AS NUMERIC(19)) FROM RDB$DATABASE";
    using (var rd = cmd.ExecuteReader())
    {
      while (rd.Read())
      { }
    }
  }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to