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:
parent
8fa39884ef
commit
85cc9b45f2
@ -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 + "`");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user