Skip to content

Commit

Permalink
docs: fix the URL regex (#1057)
Browse files Browse the repository at this point in the history
The "//[host][:port][/database]" portion of the URL regex does not accurately represent the URL variations that are actually accepted.
The proposed "[//host[:port]/][database]" does.
  • Loading branch information
bpd0018 authored and davecramer committed Jan 8, 2018
1 parent 90535d9 commit 6c5490f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jdbc:postgresql://host:port/
```
The general format for a JDBC URL for connecting to a PostgreSQL server is as follows, with items in square brackets ([ ]) being optional:
```
jdbc:postgresql://[host][:port][/[database]][?property1=value1[&property2=value2]...]
jdbc:postgresql:[//host[:port]/][database][?property1=value1[&property2=value2]...]
```
where:
* **jdbc:postgresql:** (Required) is known as the sub-protocol and is constant.
Expand Down

0 comments on commit 6c5490f

Please sign in to comment.