aboutsummaryrefslogtreecommitdiff
path: root/common/view
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-15 12:34:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-15 12:34:28 +0200
commitb66317f7c2d2a46ec0886a2a42bc90687d0fb871 (patch)
treef693530dfc114c6b1dde131dc606657aab7278c6 /common/view
parenta3e75f46dc4ba74bd9c4b55a776a1c051e00b4ec (diff)
Extend object loading view and section interaction test
Diffstat (limited to 'common/view')
-rw-r--r--common/view/olv/driver.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/view/olv/driver.cxx b/common/view/olv/driver.cxx
index f378f84..222518a 100644
--- a/common/view/olv/driver.cxx
+++ b/common/view/olv/driver.cxx
@@ -506,8 +506,13 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
view1 v (db->query_value<view1> ());
+
assert (v.o1->n == 123 && v.o2->s == "abc" &&
!v.o2->r.loaded () && !v.o2->o1);
+
+ db->load (*v.o2, v.o2->r);
+ assert (v.o2->r.loaded () && v.o2->o1 && v.o2->o1->n == 123);
+
t.commit ();
}
}