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