Set AutoCommit to true for MySQL.

Haven't really tested it, so not sure what it does.
This commit is contained in:
graywolf336 2014-03-06 13:28:58 -06:00
parent 932ae65417
commit 02a4e206cb

View File

@ -149,7 +149,7 @@ public class JailIO {
Connection mysqlConnection = DriverManager.getConnection("jdbc:mysql://" + pl.getConfig().getString("storage.mysql.host") + ":" Connection mysqlConnection = DriverManager.getConnection("jdbc:mysql://" + pl.getConfig().getString("storage.mysql.host") + ":"
+ pl.getConfig().getString("storage.mysql.port") + "/" + pl.getConfig().getString("storage.mysql.port") + "/"
+ pl.getConfig().getString("storage.mysql.database"), pl.getConfig().getString("storage.mysql.username"), pl.getConfig().getString("storage.mysql.password")); + 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; this.con = mysqlConnection;
pl.debug("Connection created for MySQL."); pl.debug("Connection created for MySQL.");