aboutsummaryrefslogtreecommitdiff
path: root/common/relationship/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/relationship/driver.cxx')
-rw-r--r--common/relationship/driver.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/common/relationship/driver.cxx b/common/relationship/driver.cxx
index 20e0f0c..c6f4b01 100644
--- a/common/relationship/driver.cxx
+++ b/common/relationship/driver.cxx
@@ -30,6 +30,13 @@ main (int argc, char* argv[])
aggr a ("aggr");
a.o1 = new obj1 ("o1", "obj1");
a.o2.reset (new obj2 ("obj2"));
+
+#ifdef HAVE_CXX11
+ a.v2.push_back (obj2_ptr (new obj2 ("v1 obj2 1")));
+ a.v2.push_back (0);
+ a.v2.push_back (obj2_ptr (new obj2 ("v1 obj2 2")));
+#endif
+
#if defined(HAVE_CXX11) || defined(HAVE_TR1_MEMORY)
a.o3.reset (new obj3 ("obj3"));
@@ -60,6 +67,13 @@ main (int argc, char* argv[])
transaction t (db->begin ());
db->persist (a.o1);
db->persist (a.o2);
+
+#ifdef HAVE_CXX11
+ for (obj2_vec::iterator i (a.v2.begin ()); i != a.v2.end (); ++i)
+ if (*i)
+ db->persist (*i);
+#endif
+
#if defined(HAVE_CXX11) || defined(HAVE_TR1_MEMORY)
db->persist (a.o3);