mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 11:38:29 +00:00
DeleteAccount converted to StringFormat
This commit is contained in:
+2
-2
@@ -307,11 +307,11 @@ uint32 Database::CreateAccount(const char* name, const char* password, int16 sta
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Database::DeleteAccount(const char* name) {
|
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;
|
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())
|
if (!results.Success())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user