oracle double decimal problem
Posted: Thu 15 Oct 2009 13:46
Hi devart team,
we have a serious problem with numeric columns, returning wrong values from the database!
The column is defined as NUMBER(13,2) the mapping maps this column to double.
The value in the database is 7.39 and after reading via Entity-Framework we get an double value of
7.390000006 !!!!
If we change the ssdl and the csdl to decimal 13,2 we get the correct value
back 7.39 as decimal
(This seems to be a known bug from former database wrappers....)
First Question:
As you anounced precision and scale are now supported,
for database reverse engeneering, but this does not work by default for
all numerics with precision/scale combinations. Only for unspecified columns or colums with specifications that exceeds double precision the decimal is correctly imported as for example decimal 25,20.
(up to now double does not support the usage of precision/scale notation)
What is to be done to get all numeric values mapped with correct precision/scale as double or how can we avoid the wrong conversion of the obove mentioned error.
Is it possible to have a check box to force the reverse engeneering to use decimals instead of doubles???
Tnx for your help
Roman
we have a serious problem with numeric columns, returning wrong values from the database!
The column is defined as NUMBER(13,2) the mapping maps this column to double.
The value in the database is 7.39 and after reading via Entity-Framework we get an double value of
7.390000006 !!!!
If we change the ssdl and the csdl to decimal 13,2 we get the correct value
back 7.39 as decimal
(This seems to be a known bug from former database wrappers....)
First Question:
As you anounced precision and scale are now supported,
for database reverse engeneering, but this does not work by default for
all numerics with precision/scale combinations. Only for unspecified columns or colums with specifications that exceeds double precision the decimal is correctly imported as for example decimal 25,20.
(up to now double does not support the usage of precision/scale notation)
What is to be done to get all numeric values mapped with correct precision/scale as double or how can we avoid the wrong conversion of the obove mentioned error.
Is it possible to have a check box to force the reverse engeneering to use decimals instead of doubles???
Tnx for your help
Roman