mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
set charset before connect (#382)
This commit is contained in:
@ -140,7 +140,7 @@ class Connection(_mysql.connection):
|
||||
kwargs2['conv'] = conv2
|
||||
|
||||
cursorclass = kwargs2.pop('cursorclass', self.default_cursor)
|
||||
charset = kwargs2.pop('charset', '')
|
||||
charset = kwargs2.get('charset', '')
|
||||
|
||||
if charset or not PY2:
|
||||
use_unicode = True
|
||||
|
Reference in New Issue
Block a user