From e827043ef36b092968b247dac7a66d947be328f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 14 Nov 2014 16:24:50 +0200 Subject: Old interface compatibility and testing fixes Now all tests pass for both Oracle and SQL Server. --- odb/boost/date-time/exceptions.cxx | 12 ++++++++++++ odb/boost/date-time/exceptions.hxx | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/odb/boost/date-time/exceptions.cxx b/odb/boost/date-time/exceptions.cxx index 7acbd84..554a9a8 100644 --- a/odb/boost/date-time/exceptions.cxx +++ b/odb/boost/date-time/exceptions.cxx @@ -16,11 +16,23 @@ namespace odb return "unrepresentable date/time special value"; } + special_value* special_value:: + clone () const + { + return new special_value (*this); + } + const char* value_out_of_range:: what () const throw () { return "date/time value out of range"; } + + value_out_of_range* value_out_of_range:: + clone () const + { + return new value_out_of_range (*this); + } } } } diff --git a/odb/boost/date-time/exceptions.hxx b/odb/boost/date-time/exceptions.hxx index 6022106..731c06e 100644 --- a/odb/boost/date-time/exceptions.hxx +++ b/odb/boost/date-time/exceptions.hxx @@ -20,12 +20,18 @@ namespace odb { virtual const char* what () const throw (); + + virtual special_value* + clone () const; }; struct LIBODB_BOOST_EXPORT value_out_of_range: exception { virtual const char* what () const throw (); + + virtual value_out_of_range* + clone () const; }; } } -- cgit v1.1