-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix 'Error: invalid sslmode value: "true"' in native mode #2299
base: master
Are you sure you want to change the base?
Conversation
When using PGSSLMODE env in native mode, an invalid database URL string would be constructed with sslmode=true/false.
Hey thanks for this! Is there a way to write a test for this? If not, if you could show an example in code that causes the problem I can write a test to exercise the fix. Either way I'm good - but need to get this under test so we don't regress on it! 😄 |
Hello, please merge and release this.
@sundbry thank you for the fix! |
This bug is present in "pg": "^8.7.1", |
@Andrei-Stepanov There’s still no test. What configuration causes this error? |
@charmander : configuration/testcase scenario:
Connection should not be established, but it is estalished. Related docs: |
@Andrei-Stepanov Which is it? Connection is established when it should not be, or Error: invalid sslmode value: "true"? |
I think this: |
@Andrei-Stepanov That sounds like an issue separate from what this PR claims to address (and what I was requesting a test case for), then. Please open an issue for it. |
When using PGSSLMODE env in native mode, an invalid database URL string
is constructed with sslmode=true/false.