From 77a9123b55d8987b0ff890a9bdf1e5c111c4983d Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Mon, 3 Oct 2011 10:32:33 +0200 Subject: Add comments --- odb/oracle/statement.cxx | 5 +++++ odb/oracle/traits.hxx | 3 +++ 2 files changed, 8 insertions(+) diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx index 21e976b..5d992b7 100644 --- a/odb/oracle/statement.cxx +++ b/odb/oracle/statement.cxx @@ -436,6 +436,11 @@ namespace odb if (r == OCI_ERROR || r == OCI_INVALID_HANDLE) translate_error (err, r); + // Make sure that the number of columns in the result returned by + // the database matches the number that we expect. A common cause + // of this assertion is a native view with a number of data members + // not matching the number of columns in the SELECT-list. + // assert (n == data_.count); #endif } diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx index d33f282..74b60a5 100644 --- a/odb/oracle/traits.hxx +++ b/odb/oracle/traits.hxx @@ -38,6 +38,9 @@ namespace odb id_float, id_double, + // Both large fixed-point and large floating point NUMBER and FLOAT + // values are mapped to this id. + // id_big_float, id_date, -- cgit v1.1