]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Get MySQL version info from @@version
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Mar 2018 20:08:08 +0000 (15:08 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 3 Mar 2018 21:16:32 +0000 (16:16 -0500)
commit8064be5b00a9f633d13f407cc30b1ddb78fda025
tree8e2008148af8a3b33a58d7887e1a6c930248fb95
parent1127fe7407c36dca72929cc3eb614cd7269857db
Get MySQL version info from @@version

MySQL dialects now query the server version using ``SELECT @@version``
explicitly to the server to ensure we are getting the correct version
information back.   Proxy servers like MaxScale interfere with the value
that is passed to the DBAPI's connection.server_version value so this
is no longer reliable.

Change-Id: Iafd39be8c9bf1982d58b34cc997ae1016ad6c48c
Fixes: #4205
(cherry picked from commit 9ba77e8d3b682bff89fdab5e80271a96a52fe8c8)
(cherry picked from commit 5c1ebbc3706c810f936d9e252ee5d16800e561ea)
doc/build/changelog/unreleased_11/4205.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/cymysql.py
lib/sqlalchemy/dialects/mysql/mysqlconnector.py
lib/sqlalchemy/dialects/mysql/mysqldb.py
lib/sqlalchemy/dialects/mysql/oursql.py