mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-08 05:52:26 +00:00
ClearAllGroups converted to StringFormat
This commit is contained in:
parent
1ec7da0f36
commit
ed21229bba
@ -1648,10 +1648,8 @@ void Database::SetGroupID(const char* name, uint32 id, uint32 charid, uint32 ism
|
|||||||
|
|
||||||
void Database::ClearAllGroups(void)
|
void Database::ClearAllGroups(void)
|
||||||
{
|
{
|
||||||
char *query = nullptr;
|
std::string query("delete from group_id");
|
||||||
|
auto results = QueryDatabase(query);
|
||||||
auto results = QueryDatabase(query, MakeAnyLenString(&query, "delete from group_id"));
|
|
||||||
safe_delete_array(query);
|
|
||||||
|
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
std::cout << "Unable to clear groups: " << results.ErrorMessage() << std::endl;
|
std::cout << "Unable to clear groups: " << results.ErrorMessage() << std::endl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user