Windows Oracle Data Access Components (MOSC)

MOSC Banner

How can I influence ODP.NET that I get allways System.Decimal when reading a number column from orac

edited Mar 26, 2014 10:59AM in Windows Oracle Data Access Components (MOSC) 5 commentsAnswered ✓

OPD.NET Windows Server 2008Version 11.01

Oracle : 11.2.0.4.PSU1

Reading number columns from a oracle instance ODP.NET store the columns in deferent datatype dependence on presicion and scale. How can I influence ODP.NET to store this columns always in Decimal datatype? Exists there any parameter which I can set?

Why this question?

Our Problem is that a column defined as  number(7,3)  and a content of 0.056 is returned in ODP.NET as single and the conversion into a double change the content from 0.056 to 0.0560000017285347 .

The old oracle odbc driver always works with decimal and the conversion from decimal to double never changed the content.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center