aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/exceptions.cxx6
-rw-r--r--odb/oracle/exceptions.hxx12
2 files changed, 9 insertions, 9 deletions
diff --git a/odb/oracle/exceptions.cxx b/odb/oracle/exceptions.cxx
index 04928f6..dfb703d 100644
--- a/odb/oracle/exceptions.cxx
+++ b/odb/oracle/exceptions.cxx
@@ -18,7 +18,7 @@ namespace odb
//
database_exception::record::
- record (int e, const string& m)
+ record (sb4 e, const string& m)
: error_ (e), message_ (m)
{
}
@@ -34,13 +34,13 @@ namespace odb
}
database_exception::
- database_exception (int e, const string& m)
+ database_exception (sb4 e, const string& m)
{
append (e, m);
}
void database_exception::
- append (int e, const string& m)
+ append (sb4 e, const string& m)
{
records_.push_back (record (e, m));
diff --git a/odb/oracle/exceptions.hxx b/odb/oracle/exceptions.hxx
index db4ffe9..9720f36 100644
--- a/odb/oracle/exceptions.hxx
+++ b/odb/oracle/exceptions.hxx
@@ -14,6 +14,7 @@
#include <odb/exceptions.hxx>
#include <odb/oracle/version.hxx>
+#include <odb/oracle/oracle-fwd.hxx>
#include <odb/oracle/details/export.hxx>
namespace odb
@@ -24,9 +25,9 @@ namespace odb
{
struct record
{
- record (int error, const std::string& message);
+ record (sb4 error, const std::string& message);
- int
+ sb4
error () const
{
return error_;
@@ -39,7 +40,7 @@ namespace odb
}
private:
- int error_;
+ sb4 error_;
std::string message_;
};
@@ -70,14 +71,13 @@ namespace odb
~database_exception () throw ();
database_exception ();
- database_exception (int error, const std::string& message);
+ database_exception (sb4 error, const std::string& message);
virtual const char*
what () const throw ();
void
- append (int error,
- const std::string& message);
+ append (sb4 error, const std::string& message);
private:
records records_;