diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-01 12:41:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-01 12:41:01 +0200 |
commit | 37e1d992d234363ff9aef45555678b5ee7203a99 (patch) | |
tree | 0cb5e7066c02619233c1fde66f21b4704087b37b /odb/exceptions.cxx | |
parent | 7aee40f95c26ae3c5af2c723af57ba316f99cf0c (diff) |
Implement support for optimistic concurrency
New pragmas: optimistic, version. New test: optimistic. New database
function: reload().
Diffstat (limited to 'odb/exceptions.cxx')
-rw-r--r-- | odb/exceptions.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx index 60692cf..970b3b0 100644 --- a/odb/exceptions.cxx +++ b/odb/exceptions.cxx @@ -71,16 +71,22 @@ namespace odb return "object not persistent"; } - const char* result_not_cached:: + const char* object_already_persistent:: what () const throw () { - return "query result is not cached"; + return "object already persistent"; } - const char* object_already_persistent:: + const char* object_changed:: what () const throw () { - return "object already persistent"; + return "object changed concurrently"; + } + + const char* result_not_cached:: + what () const throw () + { + return "query result is not cached"; } unknown_schema:: |