The password cannot be a single character
lijun4727 opened this issue · 0 comments
lijun4727 commented
file "connstring.go" exist error! (line 165)
func (p *parser) parse(original string) error {
......
if len(username) > 1 {
if strings.Contains(username, "/") {
return fmt.Errorf("unescaped slash in username")
}
}p.Username, err = url.QueryUnescape(username) if err != nil { return internal.WrapErrorf(err, "invalid username") } if len(password) > 1 { ......
}
should be:
{
......
if len(username) > 0
......
if len(password) > 0
......
}