Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric/Decimal support with 19-38 precision [DNET990] #907

Closed
firebird-automations opened this issue Dec 14, 2020 · 5 comments
Closed

Numeric/Decimal support with 19-38 precision [DNET990] #907

firebird-automations opened this issue Dec 14, 2020 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: mace windu (mace_windu)

Jira_subtask_inward DNET812

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())
{ }
}
}
}

Commits: 7401378

@firebird-automations
Copy link
Author

Modified by: @cincuranet

issuetype: Bug [ 1 ] => Sub-task [ 5 ]

Parent: DNET812 [ 22129 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

summary: [Firebird 4] Numeric/Decimal support with 19-38 precision => Numeric/Decimal support with 19-38 precision

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: vNext [ 10970 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants