From 02a4e206cbf2e31ca01ba898c2c6cb70ccc37a24 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Thu, 6 Mar 2014 13:28:58 -0600 Subject: [PATCH] Set AutoCommit to true for MySQL. Haven't really tested it, so not sure what it does. --- src/main/java/com/graywolf336/jail/JailIO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/JailIO.java b/src/main/java/com/graywolf336/jail/JailIO.java index a9192d9..3a2159c 100644 --- a/src/main/java/com/graywolf336/jail/JailIO.java +++ b/src/main/java/com/graywolf336/jail/JailIO.java @@ -149,7 +149,7 @@ public class JailIO { Connection mysqlConnection = DriverManager.getConnection("jdbc:mysql://" + pl.getConfig().getString("storage.mysql.host") + ":" + pl.getConfig().getString("storage.mysql.port") + "/" + pl.getConfig().getString("storage.mysql.database"), pl.getConfig().getString("storage.mysql.username"), pl.getConfig().getString("storage.mysql.password")); - mysqlConnection.setAutoCommit(false); + mysqlConnection.setAutoCommit(true); this.con = mysqlConnection; pl.debug("Connection created for MySQL.");