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 12edc85..402fc0b 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -20,7 +20,7 @@ namespace odb
if (!transaction::has_current ())
throw not_in_transaction ();
- traits::insert (*this, obj);
+ traits::persist (*this, obj);
return traits::id (obj);
}
@@ -73,7 +73,7 @@ namespace odb
if (!transaction::has_current ())
throw not_in_transaction ();
- object_traits<T>::update (*this, obj);
+ object_traits<T>::store (*this, obj);
}
template <typename T>