diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-22 15:44:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-22 15:44:52 +0200 |
commit | c0b30bd6639ad43efbb8d7723ad0ad8c7b3991e0 (patch) | |
tree | 97f5e214dfa166cfec411183a01b45b010597492 /odb/relational/oracle/common.cxx | |
parent | fd706a1f86e48ae9b22d3bee017ff67220c0505e (diff) |
Rename range to precision in Oracle generator
Diffstat (limited to 'odb/relational/oracle/common.cxx')
-rw-r--r-- | odb/relational/oracle/common.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/odb/relational/oracle/common.cxx b/odb/relational/oracle/common.cxx index 0049b3f..708c4e7 100644 --- a/odb/relational/oracle/common.cxx +++ b/odb/relational/oracle/common.cxx @@ -115,9 +115,9 @@ namespace relational { const sql_type& st (*mi.st); - if (st.range) + if (st.prec) { - unsigned short r (st.range_value); + unsigned short r (st.prec_value); if (!st.scale) { @@ -137,10 +137,10 @@ namespace relational { // We can calculate the decimal exponent of the normalised // floating point equivalent of the fixed point number using - // e = r - s, where r is the range, s is the scale, and e the - // exponent. We can then use this to determine whether or not a - // value of Oracle SQL type NUMBER can be completely stored in - // the native floating point type. + // e = p - s, where p is the precision, s is the scale, and + // e the exponent. We can then use this to determine whether + // or not a value of Oracle SQL type NUMBER can be completely + // stored in the native floating point type. // // The maximum decimal precision of a float is 7 significant @@ -168,7 +168,7 @@ namespace relational } } else - // If there is not range, then this is a floating-point number. + // If there is no precision, then this is a floating-point number. // traverse_double (mi); @@ -180,9 +180,9 @@ namespace relational // seeing that in 99% of cases it is the precision that is the // limiting factor and not the exponent. // - if (mi.st->range_value <= 24) + if (mi.st->prec_value <= 24) traverse_float (mi); - else if (mi.st->range_value <= 53) + else if (mi.st->prec_value <= 53) traverse_double (mi); else traverse_big_float (mi); |