Skip to content

Commit

Permalink
Add ORA-03135 as a connection error
Browse files Browse the repository at this point in the history
'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
  • Loading branch information
sterlzbd committed Jul 17, 2020
1 parent 9f0b843 commit 88ac701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sequel/adapters/oracle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)},
Expand Down

0 comments on commit 88ac701

Please sign in to comment.