@@ -73,21 +73,23 @@ class object, used to create cursors (keyword only)
73
73
74
74
:param bool use_unicode:
75
75
If True, text-like columns are returned as unicode objects
76
- using the connection's character set. Otherwise, text-like
77
- columns are returned as strings. columns are returned as
78
- normal strings. Unicode objects will always be encoded to
79
- the connection's character set regardless of this setting.
80
- Default to False on Python 2 and True on Python 3.
76
+ using the connection's character set. Otherwise, text-like
77
+ columns are returned as bytes. Unicode objects will always
78
+ be encoded to the connection's character set regardless of
79
+ this setting.
80
+ Default to False on Python 2 and True on Python 3
81
+ so that you can always get python `str` object by default.
81
82
82
83
:param str charset:
83
84
If supplied, the connection character set will be changed
84
- to this character set (MySQL-4.1 and newer). This implies
85
- use_unicode=True.
85
+ to this character set.
86
+ On Python 2, this option changes default value of `use_unicode`
87
+ option from False to True.
86
88
87
89
:param str sql_mode:
88
90
If supplied, the session SQL mode will be changed to this
89
- setting (MySQL-4.1 and newer). For more details and legal
90
- values, see the MySQL documentation.
91
+ setting.
92
+ For more details and legal values, see the MySQL documentation.
91
93
92
94
:param int client_flag:
93
95
flags to use or 0 (see MySQL docs or constants/CLIENTS.py)
0 commit comments