aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/connection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/oracle/connection.hxx')
-rw-r--r--odb/oracle/connection.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/oracle/connection.hxx b/odb/oracle/connection.hxx
index b745b95..45444c1 100644
--- a/odb/oracle/connection.hxx
+++ b/odb/oracle/connection.hxx
@@ -82,6 +82,19 @@ namespace odb
using odb::connection::tracer;
public:
+ bool
+ failed () const
+ {
+ return failed_;
+ }
+
+ void
+ mark_failed ()
+ {
+ failed_ = true;
+ }
+
+ public:
OCISvcCtx*
handle ()
{
@@ -119,6 +132,7 @@ namespace odb
auto_handle<OCIError> error_;
auto_handle<OCISvcCtx> handle_;
+ bool failed_;
std::auto_ptr<statement_cache_type> statement_cache_;