Further adjustments to the MySQL PyODBC dialect to allow for complete
connectivity, which was previously still not working despite fixes in
:ticket:`7871`.
Fixes: #7966
Change-Id: I549ea9e7b6e722e22d3e25bdb2fe0934603e2454
--- /dev/null
+.. change::
+ :tags: bug, mysql
+ :tickets: 7966
+
+ Further adjustments to the MySQL PyODBC dialect to allow for complete
+ connectivity, which was previously still not working despite fixes in
+ :ticket:`7871`.
#
# If it's decided that issuing that sort of SQL leaves you SOL, then
# this can prefer the driver value.
+
+ # set this to None as _fetch_setting attempts to use it (None is OK)
+ self._connection_charset = None
try:
value = self._fetch_setting(connection, "character_set_client")
if value:
)
return "latin1"
+ def _get_server_version_info(self, connection):
+ return MySQLDialect._get_server_version_info(self, connection)
+
def _extract_error_code(self, exception):
m = re.compile(r"\((\d+)\)").search(str(exception.args))
c = m.group(1)