From de5fda6a18ee3cd31995c7be5087aeaee9dc28d2 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 25 Aug 2016 01:31:38 +0100 Subject: [PATCH] Add some extra debugging output to PP migration --- .../migration/subcommands/MigrationPowerfulPerms.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/me/lucko/luckperms/commands/migration/subcommands/MigrationPowerfulPerms.java b/common/src/main/java/me/lucko/luckperms/commands/migration/subcommands/MigrationPowerfulPerms.java index ecd7e29ca..35d2059d7 100644 --- a/common/src/main/java/me/lucko/luckperms/commands/migration/subcommands/MigrationPowerfulPerms.java +++ b/common/src/main/java/me/lucko/luckperms/commands/migration/subcommands/MigrationPowerfulPerms.java @@ -134,6 +134,15 @@ public class MigrationPowerfulPerms extends SubCommand { return CommandResult.FAILURE; } else { + @Cleanup PreparedStatement columnPs = connection.prepareStatement("SELECT COLUMN_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=?"); + columnPs.setString(1, dbTable); + @Cleanup ResultSet columnRs = columnPs.executeQuery(); + + log.info("Found table: " + dbTable); + while (columnRs.next()) { + log.info("" + columnRs.getString("COLUMN_NAME") + " - " + columnRs.getString("COLUMN_TYPE")); + } + @Cleanup PreparedStatement preparedStatement = connection.prepareStatement("SELECT `uuid` FROM " + dbTable); @Cleanup ResultSet resultSet = preparedStatement.executeQuery();