@@ -67,39 +67,10 @@ cdef class Message:
6767 connection" error is detected, the connection is forced closed
6868 immediately.
6969 """
70- cdef bint is_recoverable = False
7170 if self .error_occurred:
72- if self .error_info.num in (
73- 28 , # session has been terminated
74- 31 , # session marked for kill
75- 376 , # file %s cannot be read at this time
76- 603 , # ORACLE server session terminated
77- 1012 , # not logged on
78- 1033 , # ORACLE initialization or shutdown in progress
79- 1034 , # the Oracle instance is not available for use
80- 1089 , # immediate shutdown or close in progress
81- 1090 , # shutdown in progress
82- 1092 , # ORACLE instance terminated
83- 1115 , # IO error reading block from file %s (block # %s)
84- 2396 , # exceeded maximum idle time
85- 3113 , # end-of-file on communication channel
86- 3114 , # not connected to ORACLE
87- 3135 , # connection lost contact
88- 12153 , # TNS:not connected
89- 12514 , # Service %s is not registered with the listener
90- 12537 , # TNS:connection closed
91- 12547 , # TNS:lost contact
92- 12570 , # TNS:packet reader failure
93- 12571 , # TNS:packet writer failure
94- 12583 , # TNS:no reader
95- 12757 , # instance does not currently know of requested service
96- 16456 , # missing or invalid value
97- ):
98- is_recoverable = True
9971 error = errors._Error(self .error_info.message,
10072 code = self .error_info.num,
101- offset = self .error_info.pos,
102- isrecoverable = is_recoverable)
73+ offset = self .error_info.pos)
10374 if error.is_session_dead:
10475 self .conn_impl._protocol._force_close()
10576 raise error.exc_type(error)
0 commit comments