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 8e69e6a..5659b6f 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -255,7 +255,7 @@ namespace odb
void database::
load_ (T& obj, section& s)
{
- connection_type& c (transaction::current ().connection ());
+ connection_type& c (transaction::current ().connection (*this));
// T is always object_type.
//
@@ -349,7 +349,7 @@ namespace odb
// T is always object_type.
//
- if (object_traits_impl<T, DB>::update (t.connection (), obj, s))
+ if (object_traits_impl<T, DB>::update (t.connection (*this), obj, s))
{
if (s.changed ())
s.reset (true, false, &t); // Clear the change flag.