DeleteAccount converted to StringFormat

This commit is contained in:
Arthur Ice 2014-07-08 19:28:02 -07:00 committed by Arthur Ice
parent 41f453d5a4
commit 95c072f692

View File

@ -307,11 +307,11 @@ uint32 Database::CreateAccount(const char* name, const char* password, int16 sta
}
bool Database::DeleteAccount(const char* name) {
char *query = nullptr;
std::string query = StringFormat("DELETE FROM account WHERE name='%s';",name);
std::cerr << "Account Attempting to be deleted:" << name << std::endl;
auto results = QueryDatabase(query, MakeAnyLenString(&query, "DELETE FROM account WHERE name='%s';",name));
auto results = QueryDatabase(query);
if (!results.Success())
{