]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fall back to SHOW VARIABLES for MySQL < 5.6
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Feb 2022 02:58:14 +0000 (21:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Feb 2022 17:39:43 +0000 (12:39 -0500)
commit465359500ade6e1b41d54a1086eb18e3bda99368
tree26b3e58eda905b6eb2c5f1609083a9379dc5ec17
parent2eac6545ad08db83954dd3afebf4894a0acb0cea
fall back to SHOW VARIABLES for MySQL < 5.6

Fixed regression caused by :ticket:`7518` where changing the syntax "SHOW
VARIABLES" to "SELECT @@" broke compatibility with MySQL versions older
than 5.6, including early 5.0 releases. While these are very old MySQL
versions, a change in compatibility was not planned, so version-specific
logic has been restored to fall back to "SHOW VARIABLES" for MySQL server
versions < 5.6.

includes unrelated orm/test_expire ordering issue , only showing
up on 1.4 / py2.7 but seems to be passing by luck otherwise

Fixes: #7518
Change-Id: Ia554080af742f2c3437f88cf3f7a4827b5e55da8
(cherry picked from commit 9f1ed1c68af05eab5851ffd038011e3e3bd36b63)
doc/build/changelog/unreleased_14/7518.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/pyodbc.py
test/dialect/mysql/test_dialect.py
test/orm/test_expire.py