bool PersistentLogonFailure::AddFailure(const IPAddress &ipaddress) { SQLStatement statement; IPAddressSQLHelper helper; helper.AppendStatement(statement, ipaddress, "ipaddress1", "ipaddress2"); statement.AddColumnCommand("failuretime", SQLStatement::GetCurrentTimestamp()); statement.SetStatementType(SQLStatement::STInsert); statement.SetTable("hm_logon_failures"); return Application::Instance()->GetDBManager()->Execute(statement); }