475 _complaintTicketList.clear();
484 TC_LOG_INFO(
"server.loading",
">> Loaded 0 GM complaints. DB table `gm_complaint` is empty!");
493 Field* fields = result->Fetch();
512 Field* chatLineFields = chatLogResult->Fetch();
514 }
while (chatLogResult->NextRow());
517 _complaintTicketList[id] = complaint;
519 }
while (result->NextRow());
bool IsClosed() const
Definition: SupportMgr.h:60
Definition: SupportMgr.h:143
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
Class used to access individual fields of database query result.
Definition: Field.h:56
void LoadFromDB(Field *fields) override
Definition: SupportMgr.cpp:149
uint32 getMSTime()
Definition: Timer.h:24
Definition: PreparedStatement.h:74
uint32 GetId() const
Definition: SupportMgr.h:66
ComplaintTicketList _complaintTicketList
Definition: SupportMgr.h:285
uint32_t uint32
Definition: Define.h:150
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
Definition: CharacterDatabase.h:305
uint32 _lastComplaintId
Definition: SupportMgr.h:288
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition: Timer.h:42
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
void LoadChatLineFromDB(Field *fields)
Definition: SupportMgr.cpp:184
Definition: CharacterDatabase.h:308
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
#define TC_LOG_INFO(filterType__,...)
Definition: Log.h:201
uint32 _openComplaintTicketCount
Definition: SupportMgr.h:292