aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/statement.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-03 10:32:33 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-06 09:06:02 +0200
commit77a9123b55d8987b0ff890a9bdf1e5c111c4983d (patch)
tree65c3e4e172cd2b0b1f155e34bb6158034fd33971 /odb/oracle/statement.cxx
parentd1f73a6fef3b6c71327acf2edbd66f0044bb1eff (diff)
Add comments
Diffstat (limited to 'odb/oracle/statement.cxx')
-rw-r--r--odb/oracle/statement.cxx5
1 files changed, 5 insertions, 0 deletions
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
}