Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Improve URL parser to allow missing hostname/dbname #64

Merged
merged 1 commit into from
Nov 10, 2013

Conversation

dylex
Copy link
Contributor

@dylex dylex commented Nov 10, 2013

When parsing the URL "jdbc:postgresql:" (which is valid, or any invalid URL as well) URL parser would crash on line 41 trynig to get PGHOST from the map. Fixed this, and also improved the parser to allow more valid URLs that are missing the host or dbname part.

Both the // and / parts of the URL are optional.  Also fix a crash that would
occur on any invalid URL.
mauricio added a commit that referenced this pull request Nov 10, 2013
Improve URL parser to allow missing hostname/dbname
@mauricio mauricio merged commit 9258433 into mauricio:master Nov 10, 2013
@dylex dylex deleted the missinghost branch November 11, 2013 04:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants