mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 22:51:30 +00:00
changed cerr message to cout on DeleteAccount
This commit is contained in:
parent
95c072f692
commit
d287d9731e
@ -309,19 +309,16 @@ uint32 Database::CreateAccount(const char* name, const char* password, int16 sta
|
|||||||
bool Database::DeleteAccount(const char* name) {
|
bool Database::DeleteAccount(const char* name) {
|
||||||
std::string query = StringFormat("DELETE FROM account WHERE name='%s';",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);
|
auto results = QueryDatabase(query);
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
{
|
{
|
||||||
std::cerr << "Error in DeleteAccount query '" << query << "' " << results.ErrorMessage() << std::endl;
|
std::cerr << "Error in DeleteAccount query '" << query << "' " << results.ErrorMessage() << std::endl;
|
||||||
safe_delete_array(query);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
safe_delete_array(query);
|
|
||||||
|
|
||||||
return results.RowsAffected() == 1;
|
return results.RowsAffected() == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user