]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Include new MySQL error code 4031 for MySQL disconnect check
authorvalievkarim <valievkarim@gmail.com>
Wed, 18 May 2022 20:24:41 +0000 (16:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 19 May 2022 13:33:05 +0000 (09:33 -0400)
commitde399c914b923ec3c81d3a51e16c7b720d34e058
tree41519b4f0ecf1cbc211d5e098d2a7353ebb59d76
parent9e7bed9df601ead02fd96bf2fc787b23b536d2d6
Include new MySQL error code 4031 for MySQL disconnect check

Added disconnect code for MySQL error 4031, introduced in MySQL >= 8.0.24,
indicating connection idle timeout exceeded. In particular this repairs an
issue where pre-ping could not reconnect on a timed-out connection. Pull
request courtesy valievkarim.

Fixes: #8036
Closes: #8037
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8037
Pull-request-sha: 7ab605c2d25c3cd83af41e3250c97c623220cc7a

Change-Id: I21249c9d8acb305ac43ce61b90b41daf7fabdfe8
doc/build/changelog/unreleased_14/8036.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_dialect.py