Skip to content

pg-connection-string: avoid clobbering port from queryparams #2833

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

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

rafiss
Copy link
Contributor

@rafiss rafiss commented Oct 5, 2022

If the connection string is something like:
postgresql://demo:password@/postgres?host=localhost&port=26258

Then the port from the query parameters should be used. Previously, the parsing function would end up with a null port, and the default port would end up being used by the connection package.

If the connection string is something like:
    postgresql://demo:password@/postgres?host=localhost&port=26258

Then the port from the query parameters should be used. Previously, the
parsing function would end up with a null port, and the default port
would end up being used by the connecetion package.
@rafiss rafiss force-pushed the fix-port-urlparam branch from d3dead4 to ad4f6c7 Compare October 5, 2022 15:33
@rafiss
Copy link
Contributor Author

rafiss commented Dec 21, 2022

Hi @brianc! Any chance this can get reviewed? I believe I've followed the guidelines but let me know if I should do something else to move this forward.

@rafiss
Copy link
Contributor Author

rafiss commented Dec 29, 2022

@charmander thanks for the review! is anything else needed to merge this?

@rafiss
Copy link
Contributor Author

rafiss commented Jan 18, 2023

Hi @brianc I see that this PR was approved, so could you let me know the next step for how I can get this merged? (or if I just need to wait?)

@rafiss
Copy link
Contributor Author

rafiss commented Jul 21, 2023

Hi @brianc or @charmander - just checking in to see if this can get merged, since it has been approved already.

@brianc brianc merged commit cf24ef2 into brianc:master Jul 21, 2023
@rafiss rafiss deleted the fix-port-urlparam branch July 21, 2023 17:02
thijs pushed a commit to thijs/node-postgres that referenced this pull request Aug 1, 2023
…2833)

If the connection string is something like:
    postgresql://demo:password@/postgres?host=localhost&port=26258

Then the port from the query parameters should be used. Previously, the
parsing function would end up with a null port, and the default port
would end up being used by the connecetion package.
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 this pull request may close these issues.

3 participants