diff options
Diffstat (limited to 'common/view/olv')
-rw-r--r-- | common/view/olv/driver.cxx | 5 |
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 (); } } |