aboutsummaryrefslogtreecommitdiff
path: root/odb/database.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.txx')
-rw-r--r--odb/database.txx5
1 files changed, 2 insertions, 3 deletions
diff --git a/odb/database.txx b/odb/database.txx
index dc8f318..5659b6f 100644
--- a/odb/database.txx
+++ b/odb/database.txx
@@ -1,5 +1,4 @@
// file : odb/database.txx
-// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#include <odb/section.hxx>
@@ -256,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.
//
@@ -350,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.