aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-14 16:24:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-14 16:24:50 +0200
commit0ca6d442fcf7e7493a742aab1171e624ac8ee6d7 (patch)
tree4d9b6ce145731389f7be6f2b915bd872268b0d87
parentc5a343056110b23cee3f4a1dd109bd0c66f65e14 (diff)
Old interface compatibility and testing fixes
Now all tests pass for both Oracle and SQL Server.
-rw-r--r--odb/qt/date-time/exceptions.cxx6
-rw-r--r--odb/qt/date-time/exceptions.hxx3
2 files changed, 9 insertions, 0 deletions
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;
};
}
}