aboutsummaryrefslogtreecommitdiff
path: root/odb/database.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-24 15:08:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-24 15:08:39 +0200
commit87d2f57e85e47e947b1918ed9395c7115c523fe6 (patch)
treed6466f2dec931669405b38a6cf47e8bb0998a4fd /odb/database.txx
parent13b215e2206380d856137dedf522c9141a58e9e0 (diff)
Add compiler error commentsbulk
Diffstat (limited to 'odb/database.txx')
-rw-r--r--odb/database.txx21
1 files changed, 20 insertions, 1 deletions
diff --git a/odb/database.txx b/odb/database.txx
index 4329754..a46b8b0 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -94,10 +94,17 @@ namespace odb
for (; b != e && n < object_traits::batch; ++n)
{
+ // Compiler error pointing here? Perhaps the passed range is
+ // of const objects?
+ //
typename persist_type<object_type>::type* p (&(*b++));
+
a[n] = const_cast<T*> (p);
}
+ // Compiler error pointing here? Perhaps the object or the
+ // database does not support bulk operations?
+ //
object_traits::persist (
*this,
const_cast<typename persist_type<object_type>::type**> (a),
@@ -182,6 +189,9 @@ namespace odb
a[n] = &pointer_traits<pointer_type>::get_ref (*p[n].ref);
}
+ // Compiler error pointing here? Perhaps the object or the
+ // database does not support bulk operations?
+ //
object_traits::persist (*this, a, n, mex);
if (mex.fatal ())
@@ -302,6 +312,9 @@ namespace odb
for (; b != e && n < object_traits::batch; ++n)
a[n] = &opt::get_ref (*b++);
+ // Compiler error pointing here? Perhaps the object or the
+ // database does not support bulk operations?
+ //
object_traits::update (*this, a, n, mex);
if (mex.fatal ())
@@ -362,10 +375,13 @@ namespace odb
for (; b != e && n < object_traits::batch; ++n)
// Compiler error pointing here? Perhaps the object id type
- // and the sequence element type don't match?
+ // and the range element type don't match?
//
a[n] = &(*b++);
+ // Compiler error pointing here? Perhaps the object or the
+ // database does not support bulk operations?
+ //
object_traits::erase (*this, a, n, mex);
if (mex.fatal ())
@@ -421,6 +437,9 @@ namespace odb
for (; b != e && n < object_traits::batch; ++n)
a[n] = &opt::get_ref (*b++);
+ // Compiler error pointing here? Perhaps the object or the
+ // database does not support bulk operations?
+ //
object_traits::erase (*this, a, n, mex);
if (mex.fatal ())