mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Support utf8mb3
This commit is contained in:
@ -300,7 +300,7 @@ class Connection(_mysql.connection):
|
|||||||
set can only be changed in MySQL-4.1 and newer. If you try
|
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
|
to change the character set from the current value in an
|
||||||
older version, NotSupportedError will be raised."""
|
older version, NotSupportedError will be raised."""
|
||||||
if charset == "utf8mb4":
|
if charset in ("utf8mb4", "utf8mb3"):
|
||||||
py_charset = "utf8"
|
py_charset = "utf8"
|
||||||
else:
|
else:
|
||||||
py_charset = charset
|
py_charset = charset
|
||||||
|
Reference in New Issue
Block a user