From e6e94eafa23f529bbc9af2f8c0252eb08e4a3e75 Mon Sep 17 00:00:00 2001 From: Alexander Meech Date: Tue, 7 Nov 2017 00:17:58 -0500 Subject: [PATCH] Revert "Revert "Move bucket generation to a table trigger"" This reverts commit c188cbea7ed60efd4740ce2d3e1d7f583627390a. --- .../src/mineplex/core/stats/StatsRepository.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/stats/StatsRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/stats/StatsRepository.java index 29fb25b29..445b9a1b8 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/stats/StatsRepository.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/stats/StatsRepository.java @@ -79,19 +79,7 @@ public class StatsRepository extends RepositoryBase { try (Connection c = getConnection()) { - executeInsert(c, "INSERT INTO stats (name) VALUES (?);", rs -> - { - if (rs.next()) - { - final int id = rs.getInt(1); - try (CallableStatement cs = c.prepareCall("{call accountStatsCreateBucketData(?)}")) - { - cs.setInt("stat", id); - cs.execute(); - onComplete.run(); - } - } - }, () -> {}, new ColumnVarChar("name", 100, name)); + executeInsert(c, "INSERT INTO stats (name) VALUES (?);", rs -> onComplete.run(), () -> {}, new ColumnVarChar("name", 100, name)); } catch (SQLException e) {