diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-14 16:24:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-14 16:24:50 +0200 |
commit | 232c3a7eb9c65c066a090e9b53c227e1c51ec4a5 (patch) | |
tree | 912f6e0599607e08deb9bcff8c9f71be6bbb2475 /odb/mssql/section-statements.hxx | |
parent | effe0f97e4b869dd2b333fe7f213d55f3363cb82 (diff) |
Old interface compatibility and testing fixes
Now all tests pass for both Oracle and SQL Server.
Diffstat (limited to 'odb/mssql/section-statements.hxx')
-rw-r--r-- | odb/mssql/section-statements.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/odb/mssql/section-statements.hxx b/odb/mssql/section-statements.hxx index 43919d5..8bb1650 100644 --- a/odb/mssql/section-statements.hxx +++ b/odb/mssql/section-statements.hxx @@ -36,6 +36,7 @@ namespace odb typedef ST traits; typedef typename traits::image_type image_type; + typedef typename traits::id_image_type id_image_type; typedef mssql::select_statement select_statement_type; typedef mssql::update_statement update_statement_type; @@ -43,7 +44,7 @@ namespace odb typedef mssql::connection connection_type; section_statements (connection_type&, - image_type&, + image_type&, id_image_type&, binding& id, binding& idv); connection_type& @@ -61,6 +62,9 @@ namespace odb image_type& image () {return image_;} + id_image_type& + id_image () {return id_image_;} + const binding& id_binding () {return id_binding_;} @@ -128,7 +132,7 @@ namespace odb traits::update_statement, traits::versioned, // Process if versioned. update_image_binding_, - traits::rowversion, + (traits::rowversion ? &idv_binding_ : 0), false)); return *update_; @@ -155,6 +159,7 @@ namespace odb // These come from object_statements. // image_type& image_; + id_image_type& id_image_; binding& id_binding_; binding& idv_binding_; |