aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/error.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-30 10:45:39 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-30 11:32:08 +0200
commitb7f64fe7f65eb286b5b0c93776fe38bd682b9552 (patch)
tree3f05495eb0eaff8c2760a962b1d1d81b2aec331a /odb/oracle/error.hxx
parent4cf24ec9ce581cdb68f53a9066e0de504031f073 (diff)
Provide separate overload of translate_error for oracle::connection
Diffstat (limited to 'odb/oracle/error.hxx')
-rw-r--r--odb/oracle/error.hxx23
1 files changed, 8 insertions, 15 deletions
diff --git a/odb/oracle/error.hxx b/odb/oracle/error.hxx
index a5dbb10..a715bce 100644
--- a/odb/oracle/error.hxx
+++ b/odb/oracle/error.hxx
@@ -8,8 +8,7 @@
#include <odb/pre.hxx>
-#include <oci.h>
-
+#include <odb/oracle/oracle-fwd.hxx>
#include <odb/oracle/forward.hxx>
#include <odb/oracle/version.hxx>
#include <odb/oracle/details/export.hxx>
@@ -18,26 +17,20 @@ namespace odb
{
namespace oracle
{
- void
- translate_error (void* h, ub4 t, sword s, connection*);
-
// Translate OCI error given an error handle and throw an appropriate
// exception.
//
- inline LIBODB_ORACLE_EXPORT void
- translate_error (OCIError* h, sword s, connection* c = 0)
- {
- translate_error (h, OCI_HTYPE_ERROR, s, c);
- }
+ LIBODB_ORACLE_EXPORT void
+ translate_error (OCIError* h, sword result);
+
+ LIBODB_ORACLE_EXPORT void
+ translate_error (connection& c, sword result);
// Translate an OCI error given an environment handle error and throw
// an appropriate exception.
//
- inline LIBODB_ORACLE_EXPORT void
- translate_error (OCIEnv* h)
- {
- translate_error (h, OCI_HTYPE_ENV, OCI_ERROR, 0);
- }
+ LIBODB_ORACLE_EXPORT void
+ translate_error (OCIEnv* h);
}
}