Skip to content

DatabaseConfig.ConnectionString() doesn't handle empty values or spaces #1

@wttw

Description

@wttw

In a postgresql connection string an empty value or a value with spaces in it needs to be surrounded with single quotes - e.g. user=steve password='' dbname=whatever.

If, say, the password is blank then without those quotes user=steve password= dbname=whatever will use "dbname=whatever" as the password and end up connecting to the default database, rather than the expected temporary one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions