]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Gracefully skip isolation level if no row returned
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Apr 2020 23:21:01 +0000 (19:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Apr 2020 23:22:15 +0000 (19:22 -0400)
commit44cdd490b2b7e6c48fae9a9fea59830fc13cb6ff
treefb354873e9671f2b55a526b4be11f159fa5a9931
parent0b8b4bcdd5fea10fdf4fc9c89db809381c1b8fe3
Gracefully skip isolation level if no row returned

Fixed issue in MySQL dialect when connecting to a psuedo-MySQL database
such as that provided by ProxySQL, the up front check for isolation level
when it returns no row will not prevent the dialect from continuing to
connect. A warning is emitted that the isolation level could not be
detected.

Fixes: #5239
Change-Id: I4a240386a0d38bd90733819495ce50e37fe2234c
(cherry picked from commit 978755e851e505e2715e71efcb51b0904ded9f80)
doc/build/changelog/unreleased_13/5239.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_dialect.py