aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/object-result.hxx4
-rw-r--r--odb/mysql/view-result.hxx4
-rw-r--r--odb/mysql/view-result.txx6
3 files changed, 6 insertions, 8 deletions
diff --git a/odb/mysql/object-result.hxx b/odb/mysql/object-result.hxx
index 6061536..c7fcbae 100644
--- a/odb/mysql/object-result.hxx
+++ b/odb/mysql/object-result.hxx
@@ -10,13 +10,13 @@
#include <cstddef> // std::size_t
+#include <odb/details/shared-ptr.hxx>
+
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx> // query, object_statements
#include <odb/mysql/result.hxx>
#include <odb/mysql/statement.hxx>
-#include <odb/details/shared-ptr.hxx>
-
namespace odb
{
namespace mysql
diff --git a/odb/mysql/view-result.hxx b/odb/mysql/view-result.hxx
index 890ca42..23f0541 100644
--- a/odb/mysql/view-result.hxx
+++ b/odb/mysql/view-result.hxx
@@ -10,13 +10,13 @@
#include <cstddef> // std::size_t
+#include <odb/details/shared-ptr.hxx>
+
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx> // query, view_statements
#include <odb/mysql/result.hxx>
#include <odb/mysql/statement.hxx>
-#include <odb/details/shared-ptr.hxx>
-
namespace odb
{
namespace mysql
diff --git a/odb/mysql/view-result.txx b/odb/mysql/view-result.txx
index 51f3d6f..7adf036 100644
--- a/odb/mysql/view-result.txx
+++ b/odb/mysql/view-result.txx
@@ -38,11 +38,9 @@ namespace odb
fetch ();
odb::database& db (this->database ());
- view_traits::callback (db, view, callback_event::pre_load);
-
- typename view_traits::image_type& i (statements_.image ());
- view_traits::init (view, i);
+ view_traits::callback (db, view, callback_event::pre_load);
+ view_traits::init (view, statements_.image ());
view_traits::callback (db, view, callback_event::post_load);
}