Allow empty param in the connection string (#227)

This commit is contained in:
Sung Won Cho 2019-07-23 17:52:00 +10:00 committed by GitHub
commit a5bcf771d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,13 +42,13 @@ func getPGConnectionString() string {
}
return fmt.Sprintf(
"host=%s port=%s dbname=%s user=%s password=%s sslmode=%s",
"sslmode=%s host=%s port=%s dbname=%s user=%s password=%s",
sslmode,
os.Getenv("DBHost"),
os.Getenv("DBPort"),
os.Getenv("DBName"),
os.Getenv("DBUser"),
os.Getenv("DBPassword"),
sslmode,
)
}