changed cerr message to cout on DeleteAccount

This commit is contained in:
Arthur Ice authored and Arthur Ice committed 2014-07-08 21:10:02 -07:00
1 parent 95c072f692
commit d287d9731e
1 file changed
+1 -4
+1 -4
View File
@@ -309,19 +309,16 @@ uint32 Database::CreateAccount(const char* name, const char* password, int16 sta
bool Database::DeleteAccount(const char* name) {
std::string query = StringFormat("DELETE FROM account WHERE name='%s';",name);
std::cerr << "Account Attempting to be deleted:" << name << std::endl;
std::cout << "Account Attempting to be deleted:" << name << std::endl;
auto results = QueryDatabase(query);
if (!results.Success())
{
std::cerr << "Error in DeleteAccount query '" << query << "' " << results.ErrorMessage() << std::endl;
safe_delete_array(query);
return false;
}
safe_delete_array(query);
return results.RowsAffected() == 1;
}