-
Notifications
You must be signed in to change notification settings - Fork 62
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
PostgreSQL connection string special character issues #21
Comments
Hi there, thanks for opening the issue. Hhmm I just tried this, and it seems to work for me.
What's your operating system and version, and the Postgres version you're connecting to? I think your issue is that you're not specifying the port. Can you give that a try? Actually, it works without a port for me as well... 😕 |
Hi I'm having an issue connecting to a PostgreSQL SB where the password contains special characters.
if my password is abc#123, and I create a connection string like:
postgres://myusername:abc%[email protected]/mydb
where # is escaped to be %23 as required by PostgreSQL. I get the following error when I try to connect:
const db = sql.open('postgres', 'postgres://myusername:abc%[email protected]/mydb');
ERRO[0005] GoError: parse "postgres://myusername:abc%!?(MISSING)[email protected]/mydb": invalid port ":abc%!"(MISSING) after host
How should can I connect to PostgreSQL DBs where a password contains a special character? Please help.
The text was updated successfully, but these errors were encountered: