From b66317f7c2d2a46ec0886a2a42bc90687d0fb871 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Dec 2016 12:34:28 +0200 Subject: Extend object loading view and section interaction test --- common/view/olv/driver.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') 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 ()); + 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 (); } } -- cgit v1.1