Set AutoCommit to true for MySQL.
Haven't really tested it, so not sure what it does.
This commit is contained in:
		| @@ -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."); | ||||||
| 					 | 					 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 graywolf336
					graywolf336