From 287a41287ed26bcf481f087680cad56ed5ef9865 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Apr 2013 16:17:26 +0200 Subject: Add support for embedded schema migration --- odb/exceptions.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'odb/exceptions.cxx') diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx index 9502f96..1ee17e5 100644 --- a/odb/exceptions.cxx +++ b/odb/exceptions.cxx @@ -2,6 +2,7 @@ // copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file +#include #include using namespace std; @@ -163,4 +164,25 @@ namespace odb { return what_.c_str (); } + + unknown_schema_version:: + unknown_schema_version (schema_version v) + : version_ (v) + { + ostringstream os; + os << v; + what_ = "unknown database schema version "; + what_ += os.str (); + } + + unknown_schema_version:: + ~unknown_schema_version () throw () + { + } + + const char* unknown_schema_version:: + what () const throw () + { + return what_.c_str (); + } } -- cgit v1.1