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/simple-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/simple-object-statements.hxx')
-rw-r--r-- | odb/mssql/simple-object-statements.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/mssql/simple-object-statements.hxx b/odb/mssql/simple-object-statements.hxx index fc46f5b..a1f4503 100644 --- a/odb/mssql/simple-object-statements.hxx +++ b/odb/mssql/simple-object-statements.hxx @@ -343,7 +343,8 @@ namespace odb conn_, object_traits::persist_statement, insert_image_binding_, - object_traits::auto_id)); + object_traits::auto_id, + object_traits::rowversion)); return *persist_; } @@ -370,7 +371,8 @@ namespace odb new (details::shared) update_statement_type ( conn_, object_traits::update_statement, - update_image_binding_)); + update_image_binding_, + object_traits::rowversion)); return *update_; } |