Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wttw opened this issue Nov 13, 2022 · 0 comments · May be fixed by #2
Open

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

wttw opened this issue Nov 13, 2022 · 0 comments · May be fixed by #2

Comments

@wttw
Copy link

wttw commented Nov 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant