aboutsummaryrefslogtreecommitdiff
path: root/odb/database.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.txx')
-rw-r--r--odb/database.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/database.txx b/odb/database.txx
index b5f9640..d96fd14 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -40,7 +40,7 @@ namespace odb
object_traits::reference_cache_traits::insert (
*this, reference_cache_type<T>::convert (obj)));
- object_traits::reference_cache_traits::initialize (p);
+ object_traits::reference_cache_traits::persist (p);
return object_traits::id (obj);
}
@@ -65,7 +65,7 @@ namespace odb
object_traits::pointer_cache_traits::insert (
*this, pointer_cache_type<pointer_type>::convert (pobj)));
- object_traits::pointer_cache_traits::initialize (p);
+ object_traits::pointer_cache_traits::persist (p);
return object_traits::id (obj);
}