From d4a2add86ebcedaaadda21ddf18da322a96f465a Mon Sep 17 00:00:00 2001 From: montlikadani Date: Thu, 1 Aug 2019 12:51:04 +0200 Subject: [PATCH] Can't call commit when autocommit=true Should fix SQLException when player limit saved --- src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java index 2b7f5876..905231de 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java @@ -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();