]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
repair fetch_setting call in mysql pyodbc dialect
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Apr 2022 19:02:37 +0000 (15:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 Apr 2022 19:02:37 +0000 (15:02 -0400)
Fixed a regression in the untested MySQL PyODBC dialect caused by the fix
for :ticket:`7518` in version 1.4.32 where an argument was being propagated
incorrectly upon first connect, leading to a ``TypeError``.

Fixes: #7871
Change-Id: I37f8ca8e83cb352ee2a2336b52863858259b1d77

doc/build/changelog/unreleased_14/7871.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/pyodbc.py

diff --git a/doc/build/changelog/unreleased_14/7871.rst b/doc/build/changelog/unreleased_14/7871.rst
new file mode 100644 (file)
index 0000000..e2b8e97
--- /dev/null
@@ -0,0 +1,7 @@
+.. change::
+    :tags: bug, mysql, regression
+    :tickets: 7871
+
+    Fixed a regression in the untested MySQL PyODBC dialect caused by the fix
+    for :ticket:`7518` in version 1.4.32 where an argument was being propagated
+    incorrectly upon first connect, leading to a ``TypeError``.
index 22d60bd15350031539fe9cf90a2b4e67187ed9c2..aa2190bf46c3acc8bf4c6a4883e9025e1d184d57 100644 (file)
@@ -89,7 +89,7 @@ class MySQLDialect_pyodbc(PyODBCConnector, MySQLDialect):
         # If it's decided that issuing that sort of SQL leaves you SOL, then
         # this can prefer the driver value.
         try:
-            value = self._fetch_setting("character_set_client")
+            value = self._fetch_setting(connection, "character_set_client")
             if value:
                 return value
         except exc.DBAPIError: