mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-05 21:17:55 +00:00
Bump deps
This commit is contained in:
11
vendor/github.com/go-sql-driver/mysql/dsn.go
generated
vendored
11
vendor/github.com/go-sql-driver/mysql/dsn.go
generated
vendored
@@ -104,12 +104,12 @@ func (cfg *Config) FormatDSN() string {
|
||||
}
|
||||
}
|
||||
|
||||
if cfg.AllowNativePasswords {
|
||||
if !cfg.AllowNativePasswords {
|
||||
if hasParam {
|
||||
buf.WriteString("&allowNativePasswords=true")
|
||||
buf.WriteString("&allowNativePasswords=false")
|
||||
} else {
|
||||
hasParam = true
|
||||
buf.WriteString("?allowNativePasswords=true")
|
||||
buf.WriteString("?allowNativePasswords=false")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,8 +284,9 @@ func (cfg *Config) FormatDSN() string {
|
||||
func ParseDSN(dsn string) (cfg *Config, err error) {
|
||||
// New config with some default values
|
||||
cfg = &Config{
|
||||
Loc: time.UTC,
|
||||
Collation: defaultCollation,
|
||||
Loc: time.UTC,
|
||||
Collation: defaultCollation,
|
||||
AllowNativePasswords: true,
|
||||
}
|
||||
|
||||
// [user[:password]@][net[(addr)]]/dbname[?param1=value1¶mN=valueN]
|
||||
|
||||
Reference in New Issue
Block a user