Fix Query
This commit is contained in:
@@ -86,7 +86,7 @@ long WrenchSuggestTasks(CVars in, CVars &out){
|
||||
REQ_STRING(in, "description", 3, 299, "(.*)");
|
||||
|
||||
const PGresult *res = pgsql_query("SELECT m.*,mf.uid AS family_uid FROM members m "
|
||||
" LEFT JOIN members_family mf ON mf.family_member_id = m.member_id "
|
||||
" LEFT JOIN members_family mf ON mf.family_member_id = m.id "
|
||||
" WHERE m.id=%lu AND m.uid='%s'", member_id, in["uid"].c_str());
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
|
||||
|
||||
Reference in New Issue
Block a user