From 37e1d992d234363ff9aef45555678b5ee7203a99 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Nov 2011 12:41:01 +0200 Subject: Implement support for optimistic concurrency New pragmas: optimistic, version. New test: optimistic. New database function: reload(). --- odb/exceptions.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'odb/exceptions.cxx') 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:: -- cgit v1.1