DeleteAccount converted to StringFormat

This commit is contained in:
Arthur Ice authored and Arthur Ice committed 2014-07-08 21:10:02 -07:00
1 parent 41f453d5a4
commit 95c072f692
1 file changed
+2 -2
+2 -2
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())
{