35 std::vector<std::string> & charCorpIDList, std::vector<std::string> & charCorpNameList)
42 " character_.characterID, "
43 " character_.corporationID, "
44 " corporation.corporationName, "
45 " entity.itemName AS name "
47 " LEFT JOIN corporation ON corporation.corporationID = character_.corporationID "
48 " LEFT JOIN entity ON entity.itemID = character_.characterID "
49 " WHERE `accountID` = %u ", accountID ))
51 sLog.Error(
"APIAccountDB::GetCharactersList()",
"Cannot find accountID %u", accountID );
56 std::map<std::string, std::string> charInfo;
59 charIDList.push_back( std::string(row.
GetText(0)) );
60 charCorpIDList.push_back( std::string(row.
GetText(1)) );
61 charCorpNameList.push_back( std::string(row.
GetText(2)) );
62 charNameList.push_back( std::string(row.
GetText(3)) );
81 " WHERE `accountID` = %u ", accountID ))
83 sLog.Error(
"APIAccountDB::GetAccountInfo()",
"Cannot find accountID %u", accountID );
90 sLog.Error(
"APIServiceDB::GetAccountInfo()",
"res.GetRow(row) failed for unknown reason." );
94 accountInfoList.push_back( std::string(row.
GetText(0)) );
95 accountInfoList.push_back( std::string(row.
GetText(1)) );
96 accountInfoList.push_back( std::string(row.
GetText(2)) );
97 accountInfoList.push_back( std::string(row.
GetText(3)) );
const char * GetText(uint32 index) const
bool GetRow(DBResultRow &into)
#define sLog
Evaluates to a NewLog instance.
bool GetAccountInfo(uint32 accountID, std::vector< std::string > &accountInfoList)
?
bool GetCharactersList(uint32 accountID, std::vector< std::string > &charIDList, std::vector< std::string > &charNameList, std::vector< std::string > &charCorpIDList, std::vector< std::string > &charCorpNameList)
?