@@ -31,13 +31,13 @@ var testDSNs = []struct {
31
31
& Config {User : "username" , Passwd : "password" , Net : "protocol" , Addr : "address" , DBName : "dbname" , Params : map [string ]string {"param" : "value" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true , ColumnsWithAlias : true , MultiStatements : true },
32
32
}, {
33
33
"user@unix(/path/to/socket)/dbname?charset=utf8" ,
34
- & Config {User : "user" , Net : "unix" , Addr : "/path/to/socket" , DBName : "dbname" , Params : map [ string ]string {"charset" : "utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true },
34
+ & Config {User : "user" , Net : "unix" , Addr : "/path/to/socket" , DBName : "dbname" , charsets : [ ]string {"utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true },
35
35
}, {
36
36
"user:password@tcp(localhost:5555)/dbname?charset=utf8&tls=true" ,
37
- & Config {User : "user" , Passwd : "password" , Net : "tcp" , Addr : "localhost:5555" , DBName : "dbname" , Params : map [ string ]string {"charset" : "utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true , TLSConfig : "true" },
37
+ & Config {User : "user" , Passwd : "password" , Net : "tcp" , Addr : "localhost:5555" , DBName : "dbname" , charsets : [ ]string {"utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true , TLSConfig : "true" },
38
38
}, {
39
39
"user:password@tcp(localhost:5555)/dbname?charset=utf8mb4,utf8&tls=skip-verify" ,
40
- & Config {User : "user" , Passwd : "password" , Net : "tcp" , Addr : "localhost:5555" , DBName : "dbname" , Params : map [ string ]string {"charset" : "utf8mb4, utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true , TLSConfig : "skip-verify" },
40
+ & Config {User : "user" , Passwd : "password" , Net : "tcp" , Addr : "localhost:5555" , DBName : "dbname" , charsets : [ ]string {"utf8mb4" , " utf8" }, Loc : time .UTC , MaxAllowedPacket : defaultMaxAllowedPacket , Logger : defaultLogger , AllowNativePasswords : true , CheckConnLiveness : true , TLSConfig : "skip-verify" },
41
41
}, {
42
42
"user:password@/dbname?loc=UTC&timeout=30s&readTimeout=1s&writeTimeout=1s&allowAllFiles=1&clientFoundRows=true&allowOldPasswords=TRUE&collation=utf8mb4_unicode_ci&maxAllowedPacket=16777216&tls=false&allowCleartextPasswords=true&parseTime=true&rejectReadOnly=true" ,
43
43
& Config {User : "user" , Passwd : "password" , Net : "tcp" , Addr : "127.0.0.1:3306" , DBName : "dbname" , Collation : "utf8mb4_unicode_ci" , Loc : time .UTC , TLSConfig : "false" , AllowCleartextPasswords : true , AllowNativePasswords : true , Timeout : 30 * time .Second , ReadTimeout : time .Second , WriteTimeout : time .Second , Logger : defaultLogger , AllowAllFiles : true , AllowOldPasswords : true , CheckConnLiveness : true , ClientFoundRows : true , MaxAllowedPacket : 16777216 , ParseTime : true , RejectReadOnly : true },
0 commit comments