diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-10 14:10:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-10 14:10:45 +0200 |
commit | d3ec68714365046a30379a410cdff52e5f5ae066 (patch) | |
tree | 36b971dd06626cc39b51eb0ec6e7f4f3ca40fcba /odb/mssql/view-result.txx | |
parent | 88f3f0282bad25c962783defa1e34dcbec60a07c (diff) |
Schema versioning support
Diffstat (limited to 'odb/mssql/view-result.txx')
-rw-r--r-- | odb/mssql/view-result.txx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/odb/mssql/view-result.txx b/odb/mssql/view-result.txx index 4842c68..641f57e 100644 --- a/odb/mssql/view-result.txx +++ b/odb/mssql/view-result.txx @@ -47,10 +47,12 @@ namespace odb view_result_impl<T>:: view_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 view_traits::callback (this->db_, view, callback_event::pre_load); - view_traits::init (view, - use_copy_ ? *image_copy_ : statements_.image (), - &this->db_); + tc_.init (view, + 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_.image_version ()) { binding& b (statements_.image_binding ()); - view_traits::bind (b.bind, im); + tc_.bind (b.bind, im); statements_.image_version (im.version); b.version++; } |