From dc8481eea952624c12d1adea722d96a93ccc6449 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 30 Nov 2011 15:59:19 +0200 Subject: Add comments --- odb/relational/oracle/common.cxx | 2 ++ odb/relational/oracle/context.cxx | 3 +++ 2 files changed, 5 insertions(+) (limited to 'odb') diff --git a/odb/relational/oracle/common.cxx b/odb/relational/oracle/common.cxx index b253dc3..0049b3f 100644 --- a/odb/relational/oracle/common.cxx +++ b/odb/relational/oracle/common.cxx @@ -168,6 +168,8 @@ namespace relational } } else + // If there is not range, then this is a floating-point number. + // traverse_double (mi); break; diff --git a/odb/relational/oracle/context.cxx b/odb/relational/oracle/context.cxx index 9093ce1..da38805 100644 --- a/odb/relational/oracle/context.cxx +++ b/odb/relational/oracle/context.cxx @@ -227,6 +227,9 @@ namespace relational // r.type = sql_type::NUMBER; s = parse_range; + + // If NUMBER has not precision/scale, then it is a floating- + // point number. We indicate this by having no range. } else if ((id == "DEC" || id == "DECIMAL" || id == "NUMERIC" || id == "INT" || id == "INTEGER" || id == "SMALLINT") -- cgit v1.1