From d12be01ecd32e64ef12d3c5d703b5ea77184775e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20L=C3=B3pez?= Date: Fri, 29 Jan 2021 06:34:55 -0300 Subject: [PATCH] Fix checking for table existence on SQL storage types (#2864) --- .../luckperms/common/storage/implementation/sql/SqlStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java index 8ae7a7bec..3916dc539 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/SqlStorage.java @@ -980,7 +980,7 @@ public class SqlStorage implements StorageImplementation { } private static boolean tableExists(Connection connection, String table) throws SQLException { - try (ResultSet rs = connection.getMetaData().getTables(null, null, "%", null)) { + try (ResultSet rs = connection.getMetaData().getTables(connection.getCatalog(), null, "%", null)) { while (rs.next()) { if (rs.getString(3).equalsIgnoreCase(table)) { return true;