mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
ResolveBug converted to QueryDatabase
This commit is contained in:
parent
9270c45a5e
commit
7b33ef67f2
@ -433,12 +433,8 @@ std::map<std::string,std::string> EQW::GetBugDetails(Const_char *id) {
|
|||||||
|
|
||||||
void EQW::ResolveBug(const char *id) {
|
void EQW::ResolveBug(const char *id) {
|
||||||
std::vector<std::string> res;
|
std::vector<std::string> res;
|
||||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
std::string query = StringFormat("UPDATE bugs SET status=1 WHERE id=%s", id);
|
||||||
char* query = 0;
|
database.QueryDatabase(query);
|
||||||
if(database.RunQuery(query, MakeAnyLenString(&query, "UPDATE bugs SET status=1 WHERE id=%s", id), errbuf)) {
|
|
||||||
safe_delete_array(query);
|
|
||||||
}
|
|
||||||
safe_delete_array(query);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQW::SendMessage(uint32 type, const char *msg) {
|
void EQW::SendMessage(uint32 type, const char *msg) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user