.. changelog::
:version: 1.0.0b2
+ .. change::
+ :tags: bug, mysql
+ :tickets: 2771
+ :pullreq: bitbucket:49
+
+ Fixes to fully support using the ``'utf8mb4'`` MySQL-specific charset
+ with MySQL dialects, in particular MySQL-Python and PyMySQL. In
+ addition, MySQL databases that report more unusual charsets such as
+ 'koi8u' or 'eucjpms' will also work correctly. Pull request
+ courtesy Thomas Grainger.
+
.. change::
:tags: change, ext, declarative
:tickets: 3331
)[1]
eq_(kw['foo'], "true")
+ def test_special_encodings(self):
+
+ for enc in ['utf8mb4', 'utf8']:
+ eng = engines.testing_engine(
+ options={"connect_args": {'charset': enc, 'use_unicode': 0}})
+ conn = eng.connect()
+ eq_(conn.dialect._connection_charset, enc)
+
class SQLModeDetectionTest(fixtures.TestBase):
__only_on__ = 'mysql'
__backend__ = True