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

Cannot connect to PostgresSQL server with apostrophe in the password #1417

Closed
sycdan opened this issue Jul 23, 2021 · 3 comments
Closed

Cannot connect to PostgresSQL server with apostrophe in the password #1417

sycdan opened this issue Jul 23, 2021 · 3 comments

Comments

@sycdan
Copy link

sycdan commented Jul 23, 2021

Preconditions

  • HeidiSQL version: 11.3.0.6295
  • Database type and version: PostgreSQL
  • OS: Windows 10

Describe the bug

I am unable to connect to PostgresSQL when there's an apostrophe (') in the password. I get the following error message:

missing "=" after "TheRestPartOfMyPasswordAfterTheApostrophe'" in connection info string

To Reproduce

Edit any existing PostgreSQL connection, or create a new one, and put an apostrophe somewhere in the password string (the rest of the connection parameters don't need to be correct), save it then click Open.

@ansgarbecker
Copy link
Collaborator

Backslashes in SSL options are already escaped since 0fe7bb6, but that's just half baken.

@ansgarbecker
Copy link
Collaborator

Fixed in the next nightly build.
SIngle quotes and backslashes in all connection string values are now properly escaped with a backslash. See the docs.

@sycdan
Copy link
Author

sycdan commented Jul 24, 2021

@ansgarbecker Thank you for that lightning-fast fix! :)

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

No branches or pull requests

2 participants