Support utf8mb3

This commit is contained in:
Inada Naoki
2018-12-04 22:25:57 +09:00
parent 20ee2e307b
commit c2e5ff7bd3

View File

@ -300,7 +300,7 @@ class Connection(_mysql.connection):
set can only be changed in MySQL-4.1 and newer. If you try
to change the character set from the current value in an
older version, NotSupportedError will be raised."""
if charset == "utf8mb4":
if charset in ("utf8mb4", "utf8mb3"):
py_charset = "utf8"
else:
py_charset = charset