fix q
This commit is contained in:
@@ -84,7 +84,7 @@ long WrenchSuggestList(CVars in, CVars &out){
|
||||
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
|
||||
// out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE member_id = %lu status IN ( 1,2,3,4,5) "
|
||||
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE member_id = %lu AND status IN ( 1,2,3,4,5) "
|
||||
" ORDER BY created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
@@ -108,8 +108,8 @@ long WrenchSuggestList(CVars in, CVars &out){
|
||||
snprintf(vname, sizeof (vname), "added_%05d", i);
|
||||
out[vname] = rec["created"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "banner_%05d", i);
|
||||
out[vname] = rec["banner"];
|
||||
snprintf(vname, sizeof (vname), "status_%05d", i);
|
||||
out[vname] = rec["status"];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user