From 0017b73bdbcb994a45f790b4a11d341fe5775a3d Mon Sep 17 00:00:00 2001 From: boy0001 Date: Wed, 12 Nov 2014 19:09:08 +1100 Subject: [PATCH] Fixes to SQL --- PlotSquared/pom.xml | 2 +- .../plot/database/SQLManager.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/PlotSquared/pom.xml b/PlotSquared/pom.xml index b63f1f52d..69e743bf8 100644 --- a/PlotSquared/pom.xml +++ b/PlotSquared/pom.xml @@ -6,7 +6,7 @@ com.intellectualcrafters PlotSquared - 2.3.0 + 2.3.1 PlotSquared jar diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java index 8a6f8204d..8ea560d81 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/database/SQLManager.java @@ -437,12 +437,12 @@ public class SQLManager extends AbstractDB { p = new Plot(plot_id, user, Biome.FOREST, new ArrayList(), new ArrayList(), new ArrayList(), "", PlotHomePosition.DEFAULT, null, worldname, new boolean[]{false, false, false, false}); plots.put(id, p); } - stmt.close(); +// stmt.close(); /* * Getting helpers */ - stmt = connection.createStatement(); +// stmt = connection.createStatement(); r = stmt.executeQuery("SELECT `user_uuid`, `plot_plot_id` FROM `" + PREFIX + "plot_helpers`"); while (r.next()) { id = r.getInt("plot_plot_id"); @@ -459,12 +459,12 @@ public class SQLManager extends AbstractDB { PlotMain.sendConsoleSenderMessage("&cPLOT " + id + " in plot_helpers does not exist. Please create the plot or remove this entry."); } } - stmt.close(); +// stmt.close(); /* * Getting trusted */ - stmt = connection.createStatement(); +// stmt = connection.createStatement(); r = stmt.executeQuery("SELECT `user_uuid`, `plot_plot_id` FROM `" + PREFIX + "plot_trusted`"); while (r.next()) { id = r.getInt("plot_plot_id"); @@ -481,12 +481,12 @@ public class SQLManager extends AbstractDB { PlotMain.sendConsoleSenderMessage("&cPLOT " + id + " in plot_trusted does not exist. Please create the plot or remove this entry."); } } - stmt.close(); +// stmt.close(); /* * Getting denied */ - stmt = connection.createStatement(); +// stmt = connection.createStatement(); r = stmt.executeQuery("SELECT `user_uuid`, `plot_plot_id` FROM `" + PREFIX + "plot_denied`"); while (r.next()) { id = r.getInt("plot_plot_id"); @@ -503,9 +503,9 @@ public class SQLManager extends AbstractDB { PlotMain.sendConsoleSenderMessage("&cPLOT " + id + " in plot_denied does not exist. Please create the plot or remove this entry."); } } - stmt.close(); +// stmt.close(); - stmt = connection.createStatement(); +// stmt = connection.createStatement(); r = stmt.executeQuery("SELECT * FROM `" + PREFIX + "plot_settings`"); while (r.next()) { id = r.getInt("plot_plot_id");