]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Added ORA-02396 "maximum idle time" error code to list of
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Dec 2013 18:18:40 +0000 (13:18 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Dec 2013 18:19:05 +0000 (13:19 -0500)
"is disconnect" codes with cx_oracle. [ticket:2864]

doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/oracle/cx_oracle.py

index e5df476163e7ae8c245ff9877ad2d6c822116d66..96f087224933d60c82455bfa5a0b79868037d337 100644 (file)
 .. changelog::
     :version: 0.8.4
 
+    .. change::
+        :tags: bug, oracle
+        :tickets: 2864
+        :versions: 0.9.0b2
+
+        Added ORA-02396 "maximum idle time" error code to list of
+        "is disconnect" codes with cx_oracle.
+
     .. change::
         :tags: bug, engine
         :tickets: 2871
index b8f7439f59960960838420da91771b809a408876..043b17ac018e63e1d225272f7cc11249f6714340 100644 (file)
@@ -805,8 +805,9 @@ class OracleDialect_cx_oracle(OracleDialect):
             # ORA-03113: end-of-file on communication channel
             # ORA-03135: connection lost contact
             # ORA-01033: ORACLE initialization or shutdown in progress
+            # ORA-02396: exceeded maximum idle time, please connect again
             # TODO: Others ?
-            return error.code in (28, 3114, 3113, 3135, 1033)
+            return error.code in (28, 3114, 3113, 3135, 1033, 2396)
         else:
             return False