aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mssql/object-result.txx4
-rw-r--r--odb/mssql/object-statements.txx2
-rw-r--r--odb/mssql/view-result.txx2
3 files changed, 4 insertions, 4 deletions
diff --git a/odb/mssql/object-result.txx b/odb/mssql/object-result.txx
index f368f04..efaeae9 100644
--- a/odb/mssql/object-result.txx
+++ b/odb/mssql/object-result.txx
@@ -64,7 +64,7 @@ namespace odb
typename object_traits::image_type& i (
use_copy_ ? *image_copy_ : statements_.image ());
- object_traits::init (obj, i, db);
+ object_traits::init (obj, i, &db);
// If we are using a copy, make sure the callback information for
// long data also comes from the copy.
@@ -213,7 +213,7 @@ namespace odb
object_traits::init (obj,
use_copy_ ? *image_copy_ : statements_.image (),
- db);
+ &db);
// If we are using a copy, make sure the callback information for
// long data also comes from the copy.
diff --git a/odb/mssql/object-statements.txx b/odb/mssql/object-statements.txx
index 5aac92b..c8753d2 100644
--- a/odb/mssql/object-statements.txx
+++ b/odb/mssql/object-statements.txx
@@ -93,7 +93,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);
find_->stream_result ();
find_->free_result (); // Our find_() version delays result freeing.
object_traits::load_ (*this, *l.obj); // Load containers, etc.
diff --git a/odb/mssql/view-result.txx b/odb/mssql/view-result.txx
index 0d16241..de64438 100644
--- a/odb/mssql/view-result.txx
+++ b/odb/mssql/view-result.txx
@@ -53,7 +53,7 @@ namespace odb
view_traits::init (view,
use_copy_ ? *image_copy_ : statements_.image (),
- db);
+ &db);
// If we are using a copy, make sure the callback information for
// long data also comes from the copy.