]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Handle dead-connection errors for users of python-oracledb 8065/head
authorChristopher Jones <christopher.jones@oracle.com>
Sat, 28 May 2022 00:07:07 +0000 (10:07 +1000)
committerChristopher Jones <christopher.jones@oracle.com>
Sat, 28 May 2022 00:07:07 +0000 (10:07 +1000)
commitd630b8457a1d29b7a1354ccc6d5e2956eea865f6
treee7827a62af2f5ec3becc536a8db068ae08e3c5fe
parent9d5ae6b9f642d0c2f7843a866019e6733afc2767
Handle dead-connection errors for users of python-oracledb

The major release of cx_Oracle after 8.3 was renamed python-oracledb.  Until
SQLAlchemy natively supports this namespace, to use python-oracledb instead of
cx_Oracle, user applications can add these lines in the first executed file:

    import sys
    import oracledb
    oracledb.version = "8.3.0"
    sys.modules["cx_Oracle"] = oracledb

This commit checks the new dead-connection error numbers that python-oracledb
generates.
lib/sqlalchemy/dialects/oracle/cx_oracle.py