postgresql-jdbc.git / summary / log / commit / refs
commit bb8a31508f3caef7532b87b50c19e092af2ec5f0
Author: bpd0018 <bpd0018@gmail.com>
Commit: Dave Cramer <davecramer@gmail.com>
Date: Mon Jan 08 12:19:40 2018 +0000
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.
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c796cc80..663484f0 100644
--- a/README.md
+++ b/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
[parent: 6c5490f90da4]