fix q
This commit is contained in:
@@ -90,7 +90,7 @@ long WrenchSuggestWaitingList(CVars in, CVars &out){ // this is the parent now
|
|||||||
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
|
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
|
||||||
// out["total_record"] = pgsql_num_rows(res);
|
// out["total_record"] = pgsql_num_rows(res);
|
||||||
|
|
||||||
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE family_uid IN (SELECT uid FROM members_family WHERE member_id = %lu) AND status IN ( 1,2,3,4,5) "
|
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE family_uid::text IN (SELECT uid::text FROM members_family WHERE member_id = %lu) AND status IN ( 1,2,3,4,5) "
|
||||||
" ORDER BY created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
|
" ORDER BY created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
|
||||||
|
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user