272 char const* fieldname =
nullptr;
279 case DTT_PET: fieldname =
"owner";
break;
281 case DTT_MAIL: fieldname =
"receiver";
break;
283 default: fieldname =
"guid";
break;
287 if (guids && guids->empty())
291 DumpGuidSet::const_iterator guidsItr;
293 guidsItr = guids->begin();
297 std::string wherestr;
327 if (result->GetFieldCount() <= 64)
329 TC_LOG_FATAL(
"misc",
"PlayerDumpWriter::DumpTable - Trying to access non-existing or wrong positioned field (`deleteInfos_Account`) in `characters` table.");
333 if (result->Fetch()[64].GetUInt32())
344 while (result->NextRow());
346 while (guids && guidsItr != guids->end());
Definition: PlayerDump.h:49
QueryResult PQuery(Format &&sql, T *conn, Args &&...args)
Definition: DatabaseWorkerPool.h:165
DumpGuidSet items
Definition: PlayerDump.h:94
DumpGuidSet pets
Definition: PlayerDump.h:92
Definition: PlayerDump.h:37
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
Definition: PlayerDump.h:46
void StoreGUID(QueryResult result, uint32 field, PlayerDump::DumpGuidSet &guids)
Definition: PlayerDump.cpp:251
Definition: PlayerDump.h:29
#define TC_LOG_FATAL(filterType__,...)
Definition: Log.h:210
Definition: PlayerDump.h:55
DumpGuidSet mails
Definition: PlayerDump.h:93
Definition: PlayerDump.h:52
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
std::string CreateDumpString(char const *tableName, QueryResult result)
Definition: PlayerDump.cpp:204
Definition: PlayerDump.h:54
std::set< ObjectGuid::LowType > DumpGuidSet
Definition: PlayerDump.h:71
std::string GenerateWhereStr(char const *field, DumpGuidSet const &guids, DumpGuidSet::const_iterator &itr)
Definition: PlayerDump.cpp:232
Definition: PlayerDump.h:41
Definition: PlayerDump.h:43