diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-14 16:01:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-01-14 16:01:06 +0200 |
commit | 5e113195591a9f8dccbb8f5f743cdd7776906b08 (patch) | |
tree | 74eb23894a9a85f3255b95cd7e998a405a6464c5 /odb/mssql/polymorphic-object-statements.hxx | |
parent | 9844c8efeaa64f62e4bfbd739088d93df97d8fc8 (diff) |
Add support for MSSQL ROWVERSION
ODB can now use ROWVERSION column as an optimistic concurrency version.
Diffstat (limited to 'odb/mssql/polymorphic-object-statements.hxx')
-rw-r--r-- | odb/mssql/polymorphic-object-statements.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/mssql/polymorphic-object-statements.hxx b/odb/mssql/polymorphic-object-statements.hxx index bc58f6f..c121168 100644 --- a/odb/mssql/polymorphic-object-statements.hxx +++ b/odb/mssql/polymorphic-object-statements.hxx @@ -277,12 +277,15 @@ namespace odb insert_statement_type& persist_statement () { + // Auto id and version are in the root. + // if (persist_ == 0) persist_.reset ( new (details::shared) insert_statement_type ( conn_, object_traits::persist_statement, insert_image_binding_, + false, false)); return *persist_; @@ -313,7 +316,8 @@ namespace odb new (details::shared) update_statement_type ( conn_, object_traits::update_statement, - update_image_binding_)); + update_image_binding_, + false)); return *update_; } |