IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16897


Ignore:
Timestamp:
Mar 8, 2008, 1:52:29 PM (18 years ago)
Author:
bills
Message:

Allow class_id to be set to "all" which will cause all matching values
to be selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/pstampparse.c

    r16593 r16897  
    262262
    263263    psStringAppend(&query, "SELECT %%s from %s WHERE %s = %%s", table, id_type);
    264     if (class_id) {
     264    // append class_id unless it is set to the special value "all"
     265    if (class_id && strcmp("all", class_id)) {
    265266        psStringAppend(&query, "%s", " and class_id = '%s'" );
    266267    }
     
    682683    }
    683684    psString roiString = parseROI(options);
     685#ifdef notdef
    684686    if (!roiString) {
    685687        return false;
    686688    }
     689#endif
    687690
    688691    psArray *uris = NULL;
     
    695698    } else if (!strcmp(req_type, "bycoord")) {
    696699        // images from a particular region of the sky
     700        if (!roiString) {
     701            fprintf(stderr, "req_type: bycoord with NULL ROI\n");
     702            return false;
     703        }
    697704        uris = parseByCoord(options);
    698705    } else {
Note: See TracChangeset for help on using the changeset viewer.