From 0ca6d442fcf7e7493a742aab1171e624ac8ee6d7 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/qt/date-time/exceptions.cxx | 6 ++++++ odb/qt/date-time/exceptions.hxx | 3 +++ 2 files changed, 9 insertions(+) diff --git a/odb/qt/date-time/exceptions.cxx b/odb/qt/date-time/exceptions.cxx index 2e35936..e745aa7 100644 --- a/odb/qt/date-time/exceptions.cxx +++ b/odb/qt/date-time/exceptions.cxx @@ -15,6 +15,12 @@ namespace odb { 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/qt/date-time/exceptions.hxx b/odb/qt/date-time/exceptions.hxx index bdbc590..70b8181 100644 --- a/odb/qt/date-time/exceptions.hxx +++ b/odb/qt/date-time/exceptions.hxx @@ -20,6 +20,9 @@ namespace odb { virtual const char* what () const throw (); + + virtual value_out_of_range* + clone () const; }; } } -- cgit v1.1