Skip to content

Commit 97629dd

Browse files
committed
fix trailing ? bug in the CRStatus .status.name
1 parent 020797c commit 97629dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/it/aboutbits/postgresql/crd/connection/ClusterConnection.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public String getName() {
5656
spec.getMaintenanceDatabase()
5757
);
5858

59+
if (spec.getParameters().isEmpty()) {
60+
return jdbcUrl;
61+
}
62+
5963
var stringJoiner = new StringJoiner("&", jdbcUrl + "?", "");
6064

6165
spec.getParameters().forEach((key, value) ->

0 commit comments

Comments
 (0)