~cjwatson/storm/clarify-no-allow-none-default-none-exception

« back to all changes in this revision

Viewing changes to storm/databases/mysql.py

  • Committer: Colin Watson
  • Date: 2021-05-25 09:19:59 UTC
  • mfrom: (571.2.1 mysql-8.0.24-compat)
  • Revision ID: cjwatson@canonical.com-20210525091959-qlkdos40c77ozsdy
[r=ilasc] Fix test compatibility with MySQL >= 8.0.24.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
 
168
168
        self._connect_kwargs["conv"] = self._converters
169
169
        self._connect_kwargs["use_unicode"] = True
170
 
        self._connect_kwargs["charset"] = uri.options.get("charset", "utf8")
 
170
        # utf8mb3 (a.k.a. utf8) is deprecated, but it's not clear that we
 
171
        # can change it without breaking applications.  Default to utf8mb3
 
172
        # for now.
 
173
        self._connect_kwargs["charset"] = uri.options.get("charset", "utf8mb3")
171
174
 
172
175
    def _raw_connect(self):
173
176
        raw_connection = ConnectionWrapper(