Update pq_driver.go

fix
This commit is contained in:
TossPig 2015-11-26 19:04:38 +08:00
parent 1c77c0aa09
commit 4153efc97e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func parseURL(connstr string) (string, error) {
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)
}