From c352bdb8b4ee7a636f71a71a301c181942af2d39 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 29 Nov 2011 14:45:51 +0200 Subject: Improve the Oracle translate_error implementation The improved implementation scans all the records associated with an error handle. Furthermore, if it is established that the connection to the database has been lost, the connection is marked as such. Additionally, all special exceptions (deadlock, timeout, and connection_lost) are now supported. --- odb/oracle/connection.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'odb/oracle/connection.cxx') diff --git a/odb/oracle/connection.cxx b/odb/oracle/connection.cxx index 8a82e40..adf89b3 100644 --- a/odb/oracle/connection.cxx +++ b/odb/oracle/connection.cxx @@ -26,6 +26,7 @@ namespace odb connection (database_type& db) : odb::connection (db), db_ (db), + failed_ (false), statement_cache_ (new statement_cache_type (*this)), lob_buffer_ (0) { @@ -111,6 +112,7 @@ namespace odb connection (database_type& db, OCISvcCtx* handle) : odb::connection (db), db_ (db), + failed_ (false), statement_cache_ (new statement_cache_type (*this)), lob_buffer_ (0) { -- cgit v1.1