Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c2e5ff7

Browse filesBrowse files
committed
Support utf8mb3
1 parent 20ee2e3 commit c2e5ff7
Copy full SHA for c2e5ff7

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎MySQLdb/connections.py

Copy file name to clipboardExpand all lines: MySQLdb/connections.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def set_character_set(self, charset):
300300
set can only be changed in MySQL-4.1 and newer. If you try
301301
to change the character set from the current value in an
302302
older version, NotSupportedError will be raised."""
303-
if charset == "utf8mb4":
303+
if charset in ("utf8mb4", "utf8mb3"):
304304
py_charset = "utf8"
305305
else:
306306
py_charset = charset

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.