From 88ac7019a7e2c20cb210343e2b69e89f26515ff7 Mon Sep 17 00:00:00 2001 From: Sterling Brim-DeForest Date: Fri, 17 Jul 2020 15:01:54 -0700 Subject: [PATCH] Add ORA-03135 as a connection error 'ORA-03135: connection lost contact' should be considered a connection error. Causes according to the Oracle docs: 1) Server unexpectedly terminated or was forced to terminate. 2) Server timed out the connection --- lib/sequel/adapters/oracle.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sequel/adapters/oracle.rb b/lib/sequel/adapters/oracle.rb index 9f1c2a4447..e6c5548462 100644 --- a/lib/sequel/adapters/oracle.rb +++ b/lib/sequel/adapters/oracle.rb @@ -14,7 +14,8 @@ class Database < Sequel::Database # ORA-02396: exceeded maximum idle time, please connect again # ORA-03113: end-of-file on communication channel # ORA-03114: not connected to ORACLE - CONNECTION_ERROR_CODES = [ 28, 1012, 2396, 3113, 3114 ].freeze + # ORA-03135: connection lost contact + CONNECTION_ERROR_CODES = [ 28, 1012, 2396, 3113, 3114, 3135 ].freeze ORACLE_TYPES = { :blob=>lambda{|b| Sequel::SQL::Blob.new(b.read)},