Remove useless commit database command

Former-commit-id: 4eb7a52bb9cc06d8ba50920340c666dd964e1684
This commit is contained in:
Ghost_chu committed 2020-03-18 12:48:22 +08:00
1 parent 645952c967
commit fe52041640
1 file changed
+8 -8
@@ -113,14 +113,14 @@ public class DatabaseManager {
+ "ms) to execute the task, it may cause the network connection with MySQL server or just MySQL server too slow, change to a better MySQL server or switch to a local SQLite database!");
}
}
try {
this.database.getConnection().commit();
} catch (SQLException e) {
try {
this.database.getConnection().rollback();
} catch (SQLException ignored) {
}
}
// try {
// this.database.getConnection().commit();
// } catch (SQLException e) {
// try {
// this.database.getConnection().rollback();
// } catch (SQLException ignored) {
// }
// }
}
/**