Skip to content

Commit

Permalink
Force lowercase SQL driver name to improve type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
games647 committed Oct 11, 2023
1 parent 51898b4 commit ec657fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import java.nio.file.Path;
import java.util.Collection;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -220,7 +221,7 @@ public String getMessage(String key) {
}

public boolean setupDatabase() {
String type = config.getString("driver");
String type = config.getString("driver").toLowerCase(Locale.ENGLISH);

HikariConfig databaseConfig = new HikariConfig();
String database = config.getString("database");
Expand Down

0 comments on commit ec657fa

Please sign in to comment.