= Statement type updates

This commit is contained in:
Matthew Cech
2019-05-24 01:06:11 -07:00
parent 634d67917f
commit 9e9759394e
3 changed files with 32 additions and 2 deletions
+4 -2
View File
@@ -87,7 +87,8 @@ public class DatabaseDriver
private void UpdateKey(String key, String value)
{
String command = "UPDATE " + globalTableName + " SET " + globalValueName + " = ? WHERE " + globalKeyName + " = ?;";
driver.ExecuteStatement(command, new String[] { key, value });
boolean status = driver.ExecuteStatement(command, new String[] { key, value });
GlobalLog.Log(LogFilter.Database, "UpdateKey status: " + status);
}
// Protoype updating for seeing if a key exists
@@ -111,7 +112,8 @@ public class DatabaseDriver
private void CreateKey(String key, String value)
{
String command = "INSERT INTO " + globalTableName + " (GlobalKey, GlobalValue) VALUES (?, ?);";
driver.ExecuteStatement(command, new String[] { key, value });
boolean status = driver.ExecuteStatement(command, new String[] { key, value });
GlobalLog.Log(LogFilter.Database, "CreateKey status: " + status);
}
// Transforms a result into a string if possible.