mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
missing ` for mysql syntax
This commit is contained in:
parent
7f84a923a7
commit
262c250cbe
@ -147,7 +147,7 @@ public class JobsMySQL extends JobsDAO {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
statement.executeQuery("SELECT * FROM " + table);
|
||||
statement.executeQuery("SELECT * FROM `" + table+"`;");
|
||||
statement.close();
|
||||
return true;
|
||||
} catch (SQLException e) {
|
||||
@ -168,10 +168,11 @@ public class JobsMySQL extends JobsDAO {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
statement.executeQuery("SELECT " + collumn + " FROM " + table);
|
||||
statement.executeQuery("SELECT `" + collumn + "` FROM `" + table + "`;");
|
||||
statement.close();
|
||||
return true;
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
Jobs.consoleMsg("Not a culumn |" + "SELECT " + collumn + " FROM " + table + "|");
|
||||
close(statement);
|
||||
return false;
|
||||
|
@ -180,7 +180,7 @@ public class JobsSQLite extends JobsDAO {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
statement.executeQuery("ALTER TABLE " + table + " ADD " + collumn + " " + type);
|
||||
statement.executeQuery("ALTER TABLE `" + table + "` ADD `" + collumn + "` " + type);
|
||||
statement.close();
|
||||
return true;
|
||||
} catch (SQLException e) {
|
||||
@ -200,7 +200,7 @@ public class JobsSQLite extends JobsDAO {
|
||||
return false;
|
||||
}
|
||||
statement = getConnection().createStatement();
|
||||
query = "DELETE FROM " + table + ";";
|
||||
query = "DELETE FROM `" + table + "`;";
|
||||
statement.executeQuery(query);
|
||||
statement.close();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user