Re-enable autocommit

This commit is contained in:
Aust1n46 2020-03-25 17:50:52 -04:00
parent d7858a791a
commit 5a5c139ea6
2 changed files with 0 additions and 3 deletions

View File

@ -22,7 +22,6 @@ public abstract class Database {
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
try {
final Connection conn = dataSource.getConnection();
conn.setAutoCommit(false);
final PreparedStatement statement = conn.prepareStatement(
"INSERT INTO VentureChat " +
"(ChatTime, UUID, Name, Server, Channel, Text, Type) " +
@ -35,7 +34,6 @@ public abstract class Database {
statement.setString(6, text);
statement.setString(7, type);
statement.executeUpdate();
conn.commit();
} catch(SQLException e) {
throw new RuntimeException(e);
}

View File

@ -38,7 +38,6 @@ public class MySQL extends Database {
dataSource = new HikariDataSource(config);
try {
Connection conn = dataSource.getConnection();
conn.setAutoCommit(false);
Statement statement = conn.createStatement();
statement.executeUpdate("CREATE TABLE IF NOT EXISTS VentureChat " +
"(ID SERIAL PRIMARY KEY, ChatTime TEXT, UUID TEXT, Name TEXT, " +