Bump deps

This commit is contained in:
Jeff Mitchell
2017-09-05 18:06:47 -04:00
parent 7cd68af8f3
commit b0e29bb2ec
465 changed files with 37332 additions and 20695 deletions

View File

@@ -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&paramN=valueN]