@@ -46,9 +46,11 @@ type Collation struct {
46
46
IsDefault bool
47
47
}
48
48
49
- var collationsIDMap = make (map [int ]* Collation )
50
- var collationsNameMap = make (map [string ]* Collation )
51
- var supportedCollations = make ([]* Collation , 0 , len (supportedCollationNames ))
49
+ var (
50
+ collationsIDMap = make (map [int ]* Collation )
51
+ collationsNameMap = make (map [string ]* Collation )
52
+ supportedCollations = make ([]* Collation , 0 , len (supportedCollationNames ))
53
+ )
52
54
53
55
// All the supported charsets should be in the following table.
54
56
var charsetInfos = map [string ]* Charset {
@@ -235,6 +237,7 @@ const (
235
237
CharsetUTF16 = "utf16"
236
238
CharsetUTF16LE = "utf16le"
237
239
CharsetUTF32 = "utf32"
240
+ CharsetUTF8MB3 = "utf8mb3"
238
241
)
239
242
240
243
var collations = []* Collation {
@@ -459,6 +462,7 @@ var collations = []*Collation{
459
462
{247 , "utf8mb4" , "utf8mb4_vietnamese_ci" , false },
460
463
{255 , "utf8mb4" , "utf8mb4_0900_ai_ci" , false },
461
464
{2048 , "utf8mb4" , "utf8mb4_zh_pinyin_tidb_as_cs" , false },
465
+ {2049 , "utf8mb3" , "utf8mb3_general_ci" , true },
462
466
}
463
467
464
468
// AddCharset adds a new charset.
0 commit comments