From ec657faaff8d62577d046f6edd8b7bc1fe1b9054 Mon Sep 17 00:00:00 2001 From: games647 Date: Wed, 11 Oct 2023 13:40:57 +0200 Subject: [PATCH] Force lowercase SQL driver name to improve type checks --- .../github/games647/fastlogin/core/shared/FastLoginCore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java index bc12cf5c7..bc93c7eaa 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/shared/FastLoginCore.java @@ -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; @@ -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");