You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using sql.Open if you accidentally pass it a string which has quotes, it doesn't fail and silently tries to connect to the localhost with the default settings instead.
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputTested on linux as well.
What did you do?
When using
sql.Open
if you accidentally pass it a string which has quotes, it doesn't fail and silently tries to connect to the localhost with the default settings instead.It should fail and an error should be shown.
What did you expect to see?
A clear error instead of it silently deciding to connect to a different database.
What did you see instead?
It's connecting to the database in localhost instead of the host
postgres
as specified.The text was updated successfully, but these errors were encountered: