Update dependencies and fix tests

Signed-off-by: Joe Adams <github@joeadams.io>
This commit is contained in:
Joe Adams
2021-07-07 09:52:56 -04:00
parent 59623d5709
commit 08fd458df0
4 changed files with 408 additions and 161 deletions

View File

@@ -184,7 +184,10 @@ func parseFingerprint(url string) (string, error) {
if len(splitted) != 2 {
return "", fmt.Errorf("malformed dsn %q", dsn)
}
kv[splitted[0]] = splitted[1]
// Newer versions of pq.ParseURL quote values so trim them off if they exist
key := strings.Trim(splitted[0], "'\"")
value := strings.Trim(splitted[1], "'\"")
kv[key] = value
}
var fingerprint string