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
--- /dev/null
+.. 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``.
# 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: