parent
1aa62881bb
commit
1c77c0aa09
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue