35 "SELECT requiredTypeID, MIN(quantity) FROM ramTypeRequirements"
36 " LEFT JOIN invBlueprintTypes ON typeID = blueprintTypeID"
37 " WHERE damagePerJob = 1 AND ("
38 " (activityID = 6 AND typeID = %u)"
40 " (activityID = 1 AND productTypeID = %u))"
41 " GROUP BY requiredTypeID",
42 typeID, typeID, typeID))
44 _log(DATABASE__ERROR,
"Unable to get recoverables for type ID %u: '%s'", typeID, res.
error.
c_str());
60 "SELECT materialTypeID, quantity"
61 " FROM invTypeMaterials"
65 _log(DATABASE__ERROR,
"Unable to get recoverables for ore ID %u: '%s'", typeID, res.
error.
c_str());
#define _log(type, fmt,...)
int32 GetInt(uint32 index) const
bool GetRow(DBResultRow &into)
const char * c_str() const
bool GetRecoverables(const uint32 typeID, std::vector< Recoverable > &into)