修复一个判断错误
This commit is contained in:
TossPig 2015-11-26 16:49:12 +08:00
parent 1aa62881bb
commit 1c77c0aa09
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func parseURL(connstr string) (string, error) {
return "", err return "", err
} }
if u.Scheme != "postgresql" && u.Scheme != "postgres" { if u.Scheme != "postgresql" || u.Scheme != "postgres" {
return "", fmt.Errorf("invalid connection protocol: %s", u.Scheme) return "", fmt.Errorf("invalid connection protocol: %s", u.Scheme)
} }