aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/pgsql/object-result.txx4
-rw-r--r--odb/pgsql/object-statements.txx2
-rw-r--r--odb/pgsql/view-result.txx2
3 files changed, 4 insertions, 4 deletions
diff --git a/odb/pgsql/object-result.txx b/odb/pgsql/object-result.txx
index 23a8ac3..3a20e2d 100644
--- a/odb/pgsql/object-result.txx
+++ b/odb/pgsql/object-result.txx
@@ -49,7 +49,7 @@ namespace odb
object_traits::callback (db, obj, callback_event::pre_load);
typename object_traits::image_type& i (statements_.image ());
- object_traits::init (obj, i, db);
+ object_traits::init (obj, i, &db);
// Initialize the id image and binding and load the rest of the object
// (containers, etc).
@@ -196,7 +196,7 @@ namespace odb
odb::database& db (this->database ());
object_traits::callback (db, obj, callback_event::pre_load);
- object_traits::init (obj, im, db);
+ object_traits::init (obj, im, &db);
object_traits::callback (db, obj, callback_event::post_load);
}
diff --git a/odb/pgsql/object-statements.txx b/odb/pgsql/object-statements.txx
index 583b788..2b21f76 100644
--- a/odb/pgsql/object-statements.txx
+++ b/odb/pgsql/object-statements.txx
@@ -123,7 +123,7 @@ namespace odb
// loads being added to the delayed_ vector. We need to process
// those before we call the post callback.
//
- object_traits::init (*l.obj, image (), db);
+ object_traits::init (*l.obj, image (), &db);
object_traits::load_ (*this, *l.obj); // Load containers, etc.
if (!delayed_.empty ())
diff --git a/odb/pgsql/view-result.txx b/odb/pgsql/view-result.txx
index 51a9416..0989d62 100644
--- a/odb/pgsql/view-result.txx
+++ b/odb/pgsql/view-result.txx
@@ -64,7 +64,7 @@ namespace odb
odb::database& db (this->database ());
view_traits::callback (db, view, callback_event::pre_load);
- view_traits::init (view, im, db);
+ view_traits::init (view, im, &db);
view_traits::callback (db, view, callback_event::post_load);
}