IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 21, 2006, 7:16:02 PM (20 years ago)
Author:
jhoblitt
Message:

fix handling of no search parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2searchPendingFrames.c

    r6156 r6157  
    55    PS_ASSERT_PTR_NON_NULL(config, NULL);
    66
    7     // build 'where' structure
    87    psMetadata *where = psMetadataAlloc();
    98
    10     // in order to include these restrictions, we need to define these table columns
    119    if (config->camera_name != NULL) {
    1210        psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==",
     
    3735    }
    3836    */
     37
     38    // if no search criteria were added then set where to NULL to search for
     39    // everything
     40    // XXX fix handling of where
     41    if (where->list->n < 1) {
     42        psFree(where);
     43        where = NULL;
     44    }
    3945
    4046    psArray *exposures = p2PendingExpSelectRowObjects(config->database, where, MAX_ROWS);
Note: See TracChangeset for help on using the changeset viewer.