diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-03 13:18:40 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-03 13:19:05 -0500 |
commit | f2f54e04a54be79dea054ebede72befdd0dd4b6c (patch) | |
tree | 653bbebc7cf9a031146a034a59fbb53d31034630 | |
parent | f7e3a3a36cf9ebb2bbcc70c9b6c8d08710d6e14e (diff) | |
download | sqlalchemy-f2f54e04a54be79dea054ebede72befdd0dd4b6c.tar.gz |
- Added ORA-02396 "maximum idle time" error code to list of
"is disconnect" codes with cx_oracle. [ticket:2864]
-rw-r--r-- | doc/build/changelog/changelog_08.rst | 8 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/oracle/cx_oracle.py | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/build/changelog/changelog_08.rst b/doc/build/changelog/changelog_08.rst index e5df47616..96f087224 100644 --- a/doc/build/changelog/changelog_08.rst +++ b/doc/build/changelog/changelog_08.rst @@ -12,6 +12,14 @@ :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 :versions: 0.9.0b2 diff --git a/lib/sqlalchemy/dialects/oracle/cx_oracle.py b/lib/sqlalchemy/dialects/oracle/cx_oracle.py index b8f7439f5..043b17ac0 100644 --- a/lib/sqlalchemy/dialects/oracle/cx_oracle.py +++ b/lib/sqlalchemy/dialects/oracle/cx_oracle.py @@ -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 |