+ " UNIQUE KEY name (name)\n"
+ ") DEFAULT CHARSET=latin1;");
statement.execute();
+ statement.close();
createTableNeeded = false;
}
("INSERT INTO Audit (name) VALUES (?)");
statement.setString(1, key);
statement.executeUpdate();
+ statement.close();
// fetch the entry from the table
phase = "fetch entry";
("DbAudit: can't find newly-created entry with key " + key);
setResponse("Can't find newly-created entry");
}
+ statement.close();
// delete entries from table
phase = "delete entry";
("DELETE FROM Audit WHERE name = ?");
statement.setString(1, key);
statement.executeUpdate();
+ statement.close();
+ statement = null;
}
catch (Exception e)
{