53 for (
uint8 i = 0; i < searchID->size(); i++) {
54 switch(searchID->at(i)) {
58 " characterID AS agentID"
59 " FROM chrNPCCharacters"
60 " WHERE characterName LIKE '%s' "
61 " LIMIT 0, 10",
string.c_str() );
67 " characterID AS ownerID"
69 " WHERE characterName LIKE '%s' ",
string.c_str() );
75 " corporationID AS ownerID"
76 " FROM crpCorporation"
77 " WHERE corporationName LIKE '%s' "
78 " LIMIT 0, 10",
string.c_str() );
83 "SELECT allianceID AS ownerID"
85 " WHERE shortName LIKE '%s' "
86 " LIMIT 0, 10",
string.c_str() );
91 "SELECT factionID AS ownerID"
93 " WHERE factionName LIKE '%s' "
94 " LIMIT 0, 10",
string.c_str() );
100 " constellationID AS itemID"
101 " FROM mapConstellations"
102 " WHERE constellationName LIKE '%s' "
103 " LIMIT 0, 10",
string.c_str() );
109 " solarSystemID AS itemID"
110 " FROM mapSolarSystems "
111 " WHERE solarSystemName LIKE '%s' "
112 " LIMIT 0, 10",
string.c_str() );
118 " regionID AS itemID"
120 " WHERE regionName LIKE '%s' "
121 " LIMIT 0, 10",
string.c_str() );
127 " stationID AS itemID"
129 " WHERE stationName LIKE '%s' "
130 " LIMIT 0, 10",
string.c_str() );
138 " WHERE itemName LIKE '%s'"
139 " AND ownerID = %u",
string.c_str(), charID );
152 uint8 size = searchID->size();
154 if (((size == 1) && (searchID->at(0) == 2)) || (hideNPC)) {
162 for (
uint8 i=0; i < searchID->size(); i++) {
163 switch(searchID->at(i)) {
167 " FROM chrNPCCharacters"
168 " WHERE characterName LIKE '%s' "
169 " LIMIT 0, 10",
string.c_str() );
174 " FROM chrCharacters"
175 " WHERE characterName LIKE '%s' ",
string.c_str() );
179 "SELECT corporationID"
180 " FROM crpCorporation"
181 " WHERE corporationName LIKE '%s' "
182 " LIMIT 0, 10",
string.c_str() );
188 " WHERE shortName LIKE '%s' "
189 " LIMIT 0, 10",
string.c_str() );
195 " WHERE factionName LIKE '%s' "
196 " LIMIT 0, 10",
string.c_str() );
200 "SELECT constellationID"
201 " FROM mapConstellations"
202 " WHERE constellationName LIKE '%s' "
203 " LIMIT 0, 10",
string.c_str() );
207 "SELECT solarSystemID"
208 " FROM mapSolarSystems "
209 " WHERE solarSystemName LIKE '%s' "
210 " LIMIT 0, 10",
string.c_str() );
216 " WHERE regionName LIKE '%s' "
217 " LIMIT 0, 10",
string.c_str() );
223 " WHERE stationName LIKE '%s' "
224 " LIMIT 0, 10",
string.c_str() );
230 " WHERE itemName LIKE '%s'"
231 " AND ownerID = %u",
string.c_str(), charID );
uint32 GetUInt(uint32 index) const
PyDict * DBResultToIntIntDict(DBQueryResult &result)
bool GetRow(DBResultRow &into)
PyRep * QuickQuery(std::string string, std::vector< int > *searchID, uint32 charID, bool hideNPC=false, bool onlyAltName=false)
PyRep * Query(std::string string, std::vector< int > *searchID, uint32 charID)
void SetItem(PyRep *key, PyRep *value)
SetItem adds or sets a database entry.