From f1d06b7994d8b0aa31f86288183f46509bb78c19 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Apr 2021 10:03:56 +0200 Subject: Add transaction::connection(database&) overload --- odb/database.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/database.txx') 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::update (t.connection (), obj, s)) + if (object_traits_impl::update (t.connection (*this), obj, s)) { if (s.changed ()) s.reset (true, false, &t); // Clear the change flag. -- cgit v1.1