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

[Fix] Connection string parsing #118

Merged
merged 1 commit into from
May 12, 2020
Merged

Conversation

Soremwar
Copy link
Collaborator

The URL api is aligned to match the one in the browser, which mean that in both cases passing a connection string with the following format:

postgres://fizz:[email protected]:8000/test_database?application_name=myapp

The URL api won't parse the url correctly due to the API not recognizing the protocol/driver in the url, that is why this PR replaces the protocol with http in order to parse the url correctly through the URL api.

@Soremwar Soremwar changed the title [Hack] Fix connection string parsing [Fix] Connection string parsing May 12, 2020
Copy link
Collaborator

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, thanks!

@bartlomieju bartlomieju merged commit 1b8fd60 into denodrivers:master May 12, 2020
bartlomieju added a commit that referenced this pull request May 14, 2020
bartlomieju pushed a commit that referenced this pull request May 14, 2020
@Soremwar Soremwar deleted the url_fix branch June 4, 2020 23:09
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.

2 participants