]> 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:21:01 +0000 (19:21 -0400)
commit978755e851e505e2715e71efcb51b0904ded9f80
treea5b6202c2f94bd98ce8c1d9f2e79f115b6ffadb8
parent5150ef4ed166042b4a1f4a77b5a0af609b5fc660
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
doc/build/changelog/unreleased_13/5239.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_dialect.py