mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 11:42:36 +00:00
DeleteAccount converted to StringFormat
This commit is contained in:
parent
41f453d5a4
commit
95c072f692
@ -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())
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user