mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-17 22:57:49 +01:00
Fix checking for table existence on SQL storage types (#2864)
This commit is contained in:
parent
8043b84dc4
commit
d12be01ecd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user