1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 12:05:16 +01:00

Can't call commit when autocommit=true

Should fix SQLException when player limit saved
This commit is contained in:
montlikadani 2019-08-01 12:51:04 +02:00
parent 0abdf99c85
commit d4a2add86e

View File

@ -860,7 +860,6 @@ public abstract class JobsDAO {
}
prest.executeBatch();
conn.commit();
conn.setAutoCommit(true);
} catch (Exception e) {
e.printStackTrace();
} finally {
@ -1256,8 +1255,6 @@ public abstract class JobsDAO {
// calculate the max level
// add the progression level.
jPlayer.progression.add(jobProgression);
jPlayer.getArchivedJobs().addArchivedJob(jobProgression);
}
jPlayer.reloadMaxExperience();
jPlayer.reloadLimits();