aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-30 15:59:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-30 15:59:19 +0200
commitdc8481eea952624c12d1adea722d96a93ccc6449 (patch)
tree14d6ed8bf8fc738d46aa3a575683a32edab91e61 /odb
parent7658d9946cca973cf5f4e875b5386afa6e0821b9 (diff)
Add comments
Diffstat (limited to 'odb')
-rw-r--r--odb/relational/oracle/common.cxx2
-rw-r--r--odb/relational/oracle/context.cxx3
2 files changed, 5 insertions, 0 deletions
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")