mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Lets set autocommit in finall catch, just in canse it fails
This commit is contained in:
parent
743148bfae
commit
13dd412def
@ -864,6 +864,11 @@ public abstract class JobsDAO {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
close(prest);
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -1057,6 +1062,11 @@ public abstract class JobsDAO {
|
||||
} finally {
|
||||
close(statement);
|
||||
close(insert);
|
||||
try {
|
||||
conns.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1522,6 +1532,11 @@ public abstract class JobsDAO {
|
||||
} finally {
|
||||
close(prest1);
|
||||
close(prest2);
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1685,6 +1700,11 @@ public abstract class JobsDAO {
|
||||
close(insert);
|
||||
close(update);
|
||||
close(delete);
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1796,6 +1816,11 @@ public abstract class JobsDAO {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
close(prest2);
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1840,6 +1865,11 @@ public abstract class JobsDAO {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
close(prest);
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: Jobs
|
||||
description: Jobs Plugin for the BukkitAPI
|
||||
main: com.gamingmesh.jobs.Jobs
|
||||
version: 4.5.1
|
||||
version: 4.5.2
|
||||
website: https://www.spigotmc.org/resources/jobs-reborn.4216/
|
||||
author: phrstbrn
|
||||
softdepend: [Vault, iConomy, MythicMobs, McMMO, WorldGuard, MyPet]
|
||||
|
Loading…
Reference in New Issue
Block a user