aboutsummaryrefslogtreecommitdiff
path: root/common/section/basics/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-14 16:24:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-25 06:49:01 +0200
commitd7752cdb86957f7dc0caffe6033e872443ad8153 (patch)
tree8909976800ce89089ce6b12ea02c7f18ca61453d /common/section/basics/driver.cxx
parent0a4df2bc0c7962acbddc55b4b5668e09fb54ef7f (diff)
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'common/section/basics/driver.cxx')
-rw-r--r--common/section/basics/driver.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/section/basics/driver.cxx b/common/section/basics/driver.cxx
index f34ed90..a2b7006 100644
--- a/common/section/basics/driver.cxx
+++ b/common/section/basics/driver.cxx
@@ -1273,6 +1273,13 @@ main (int argc, char* argv[])
db->update (o1, o1.s);
assert (o.v != o1.v);
+ // Double-check object version was updated.
+ //
+ {
+ auto_ptr<object> p1 (db->load<object> (o.id));
+ assert (o1.v == p1->v);
+ }
+
try
{
db->load (*p, p->s);
@@ -1393,6 +1400,13 @@ main (int argc, char* argv[])
db->update (o1, o1.s);
assert (o.v != o1.v);
+ // Double-check object version was updated.
+ //
+ {
+ auto_ptr<object> p1 (db->load<object> (o.id));
+ assert (o1.v == p1->v);
+ }
+
try
{
db->load (*p, p->s);