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

Fix SQLiteException error when changed database to SQL

https://www.spigotmc.org/threads/jobs-reborn.50989/page-241#post-3277743
This commit is contained in:
montlikadani 2019-01-09 16:01:23 +01:00
parent 8fa39884ef
commit 85cc9b45f2

View File

@ -1032,7 +1032,7 @@ public abstract class JobsDAO {
try {
statement = conns.createStatement();
if (Jobs.getDBManager().getDbType().toString().equalsIgnoreCase("sqlite")) {
statement.executeUpdate("TRUNCATE `" + getPrefix() + table + "`");
statement.executeUpdate("TRUNCATE TABLE `" + getPrefix() + table + "`");
} else {
statement.executeUpdate("DELETE from `" + getPrefix() + table + "`");
}