Added two new error codes for Oracle disconnect handling to support early
testing of the new "python-oracledb" driver released by Oracle.
Fixes: #8066
Closes: #8065
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8065
Pull-request-sha:
d630b8457a1d29b7a1354ccc6d5e2956eea865f6
Change-Id: Ib14dbb888597b1087b1bb7c505ccad59df226177
(cherry picked from commit
2bf00472bfafd8fd0cca5b4fe55ff4faf1a1279e)
--- /dev/null
+.. change::
+ :tags: usecase, oracle
+ :tickets: 8066
+
+ Added two new error codes for Oracle disconnect handling to support early
+ testing of the new "python-oracledb" driver released by Oracle.
# TODO: Others ?
return True
- if re.match(r"^(?:DPI-1010|DPI-1080)", str(e)):
+ if re.match(r"^(?:DPI-1010|DPI-1080|DPY-1001|DPY-4011)", str(e)):
# DPI-1010: not connected
# DPI-1080: connection was closed by ORA-3113
+ # python-oracledb's DPY-1001: not connected to database
+ # python-oracledb's DPY-4011: the database or network closed the
+ # connection
# TODO: others?
return True