aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/no-id-object-result.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mssql/no-id-object-result.txx')
-rw-r--r--odb/mssql/no-id-object-result.txx12
1 files changed, 7 insertions, 5 deletions
diff --git a/odb/mssql/no-id-object-result.txx b/odb/mssql/no-id-object-result.txx
index 6629fa1..1b9edd3 100644
--- a/odb/mssql/no-id-object-result.txx
+++ b/odb/mssql/no-id-object-result.txx
@@ -47,10 +47,12 @@ namespace odb
no_id_object_result_impl<T>::
no_id_object_result_impl (const query_base&,
details::shared_ptr<select_statement> statement,
- statements_type& statements)
+ statements_type& statements,
+ const schema_version_migration* svm)
: base_type (statements.connection ()),
statement_ (statement),
statements_ (statements),
+ tc_ (svm),
use_copy_ (false),
image_copy_ (0)
{
@@ -65,9 +67,9 @@ namespace odb
object_traits::callback (this->db_, obj, callback_event::pre_load);
- object_traits::init (obj,
- use_copy_ ? *image_copy_ : statements_.image (),
- &this->db_);
+ tc_.init (obj,
+ use_copy_ ? *image_copy_ : statements_.image (),
+ &this->db_);
// If we are using a copy, make sure the callback information for
// long data also comes from the copy.
@@ -100,7 +102,7 @@ namespace odb
if (im.version != statements_.select_image_version ())
{
binding& b (statements_.select_image_binding ());
- object_traits::bind (b.bind, im, statement_select);
+ tc_.bind (b.bind, im, statement_select);
statements_.select_image_version (im.version);
b.version++;
}