summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/traversals.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-12-14 16:46:50 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2021-12-16 09:17:04 -0500
commit3a33fa8b0acd9220ef4428ac6a56ebd8d40c3762 (patch)
treec741f9a6ab6adf3eb23c00fa90f82ec6455e7ad2 /lib/sqlalchemy/sql/traversals.py
parent009747e146008ce695f33aee5ffb12a14f3a7e46 (diff)
downloadsqlalchemy-3a33fa8b0acd9220ef4428ac6a56ebd8d40c3762.tar.gz
include InterfaceError for mariadb disconnect check
Corrected the error classes inspected for the "is_disconnect" check for the ``mariadbconnector`` dialect, which was failing for disconnects that occurred due to common MySQL/MariaDB error codes such as 2006; the DBAPI appears to currently use the ``mariadb.InterfaceError`` exception class for disconnect errors such as error code 2006, which has been added to the list of classes checked. For the current "real reconnect test", shutting down the mariadb connection from the client side produces ProgrammingError("Connection isn't valid anymore") which we also continue to intercept. Fixes: #7457 Change-Id: I0b37cd7a73359a23ad756ff2af0a9333c841221b
Diffstat (limited to 'lib/sqlalchemy/sql/traversals.py')
0 files changed, 0 insertions, 0 deletions