File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ func (c *Conn) writeAuthHandshake() error {
275
275
data [11 ] = 0x00
276
276
277
277
// Charset [1 byte]
278
- // use default collation id 33 here, is `utf8mb3_general_ci `
278
+ // use default collation id 255 here, is `utf8mb4_0900_ai_ci `
279
279
collationName := c .collation
280
280
if len (collationName ) == 0 {
281
281
collationName = DEFAULT_COLLATION_NAME
Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ const (
183
183
DEFAULT_IPV6_ADDR = "[::1]:3306"
184
184
DEFAULT_USER = "root"
185
185
DEFAULT_PASSWORD = ""
186
- DEFAULT_FLAVOR = "mysql"
187
- DEFAULT_CHARSET = "utf8 "
188
- DEFAULT_COLLATION_ID uint8 = 33
189
- DEFAULT_COLLATION_NAME string = "utf8_general_ci "
186
+ DEFAULT_FLAVOR = MySQLFlavor
187
+ DEFAULT_CHARSET = "utf8mb4 "
188
+ DEFAULT_COLLATION_ID uint8 = 255
189
+ DEFAULT_COLLATION_NAME string = "utf8mb4_0900_ai_ci "
190
190
)
191
191
192
192
const (
You can’t perform that action at this time.
0 commit comments