1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +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 { try {
statement = conns.createStatement(); statement = conns.createStatement();
if (Jobs.getDBManager().getDbType().toString().equalsIgnoreCase("sqlite")) { if (Jobs.getDBManager().getDbType().toString().equalsIgnoreCase("sqlite")) {
statement.executeUpdate("TRUNCATE `" + getPrefix() + table + "`"); statement.executeUpdate("TRUNCATE TABLE `" + getPrefix() + table + "`");
} else { } else {
statement.executeUpdate("DELETE from `" + getPrefix() + table + "`"); statement.executeUpdate("DELETE from `" + getPrefix() + table + "`");
} }