fix q
This commit is contained in:
@@ -68,8 +68,8 @@ long WrenchSampleTasks(CVars in, CVars &out){
|
||||
long limit = REQ_LONG(in, "limit", 1, -1);
|
||||
|
||||
out["total_record"] = "0";
|
||||
res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
|
||||
// out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
res = pgsql_query(" SELECT * FROM family_task_suggestion WHERE status = 1 "
|
||||
" ORDER BY title DESC LIMIT %lu OFFSET %lu", limit, offset);
|
||||
@@ -111,6 +111,7 @@ long WrenchSampleTasks(CVars in, CVars &out){
|
||||
}
|
||||
|
||||
logfmt(logINFO, "WrenchSampleTasks()");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user