Permalink
Browse files

docs: fix no parameter connect string example (#1056)

postgresql-42.1.4 - DriverManager.getConnection("jdbc:postgresql:/") throws org.postgresql.util.PSQLException: FATAL: database "/" does not exist. The trailing slash is being interpreted as the database name. DriverManager.getConnection("jdbc:postgresql:") connects to the default port on localhost using the user's name as the database.
  • Loading branch information...
bpd0018 authored and davecramer committed Jan 8, 2018
1 parent 6c5490f commit bb8a31508f3caef7532b87b50c19e092af2ec5f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
@@ -85,7 +85,7 @@ For more information you can read [the PgJDBC driver documentation](https://jdbc
The driver recognises JDBC URLs of the form:
```
jdbc:postgresql:database
jdbc:postgresql:/
jdbc:postgresql:
jdbc:postgresql://host/database
jdbc:postgresql://host/
jdbc:postgresql://host:port/database

0 comments on commit bb8a315

Please sign in to comment.