diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-01 12:41:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-01 14:30:22 +0200 |
commit | 7871bd9b681f449cc3938750ce70fa1ed5400dcd (patch) | |
tree | 3784716722430f06799016e3b7bdae7231fd9120 /odb/context.cxx | |
parent | c11ace0f4a665ac0dfb269860ef04dce284b75f5 (diff) |
Implement support for optimistic concurrency
New pragmas: optimistic, version. New test: optimistic. New database
function: reload().
Diffstat (limited to 'odb/context.cxx')
-rw-r--r-- | odb/context.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/context.cxx b/odb/context.cxx index f1386d2..2e96ba9 100644 --- a/odb/context.cxx +++ b/odb/context.cxx @@ -1096,6 +1096,8 @@ namespace c_.inverse++; else if (context::readonly (member_path_, member_scope_)) c_.readonly++; + else if (context::version (m)) + c_.optimistic_managed++; } context::column_count_type c_; |