Changeset 313
- Timestamp:
- 08/18/10 11:38:07 (18 months ago)
- Files:
-
- 1 modified
-
trunk/src/wfs/wfs_get_feature.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wfs/wfs_get_feature.c
r302 r313 324 324 /* just count the number of features */ 325 325 for (ln = request_list->first->value->first; ln != NULL; ln = ln->next) { 326 buffer_add_head_str(ln->value, "SELECT count(*) FROM ("); 327 buffer_add_str(ln->value, ") as foo"); 326 328 res = PQexec(o->pg, ln->value->buf); 327 329 328 330 if (PQresultStatus(res) == PGRES_TUPLES_OK) 329 hits = hits + PQnfields(res);331 hits = hits + atoi(PQgetvalue(res, 0, 0)); 330 332 331 333 PQclear(res);