aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:01 +0200
commit37e1d992d234363ff9aef45555678b5ee7203a99 (patch)
tree0cb5e7066c02619233c1fde66f21b4704087b37b /odb/exceptions.cxx
parent7aee40f95c26ae3c5af2c723af57ba316f99cf0c (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.cxx14
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::