From 24c8951999e1dc9dc4419dcf5415576ae8b0d55d Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 30 Nov 2011 10:49:17 +0200 Subject: Translate ORA-2049 as a timeout error and ORA-3113 as a connection lost error --- odb/oracle/error.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odb/oracle/error.cxx b/odb/oracle/error.cxx index 008591a..b822256 100644 --- a/odb/oracle/error.cxx +++ b/odb/oracle/error.cxx @@ -115,9 +115,11 @@ namespace odb e == 104) // Deadlock detected; all public servers blocked. nc = code_deadlock; else if (e == 51 || // Timeout occurred while waiting for a resource. - e == 54) // Resource busy and acquisition timeout expired. + e == 54 || // Resource busy and acquisition timeout expired. + e == 2049) // Distributed lock timeout. nc = code_timeout; else if (e == 28 || // Session has been killed. + e == 3113 || // End-of-file on communication channel. e == 3135 || // Connection lost contact. e == 3136 || // Inbound connection timed out. e == 3138) // Connection terminated. -- cgit v1.1