diff options
Diffstat (limited to 'common/access')
-rw-r--r-- | common/access/driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/access/driver.cxx b/common/access/driver.cxx index 4ec8433..05c18be 100644 --- a/common/access/driver.cxx +++ b/common/access/driver.cxx @@ -95,7 +95,8 @@ main (int argc, char* argv[]) { transaction t (db->begin ()); - db->persist (o.p1 ()); + const object1_ptr& ptr (o.p1 ()); + db->persist (ptr); db->persist (o.p2 ()); db->persist (o); t.commit (); |