Skip to content

Commit

Permalink
Update src/main/java/com/eternalcode/parcellockers/database/DatabaseM…
Browse files Browse the repository at this point in the history
…anager.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Jakubk15 and coderabbitai[bot] authored Dec 31, 2024
1 parent 6868080 commit 0c700be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void connect() throws SQLException {

case POSTGRESQL -> {
this.dataSource.setDriverClassName("org.postgresql.Driver");
this.dataSource.setJdbcUrl("jdbc:postgresql://" + this.config.settings.host + ":" + this.config.settings.port + "/");
this.dataSource.setJdbcUrl("jdbc:postgresql://" + this.config.settings.host + ":" + this.config.settings.port + "/" + this.config.settings.databaseName);
}

default -> throw new IllegalStateException("Unexpected value: SQL type '" + databaseType + "' not found");
Expand Down

0 comments on commit 0c700be

Please sign in to comment.