IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2007, 2:30:38 PM (19 years ago)
Author:
eugene
Message:

adding -select_state option to residimfile

File:
1 edited

Legend:

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

    r13937 r13974  
    50015001    PS_ASSERT_PTR_NON_NULL(config, false);
    50025002
     5003    char *value = NULL;
    50035004    bool status = false;
    50045005    psU64 limit = psMetadataLookupU64(&status, config->args, "-limit");
     
    50305031        "   USING(exp_tag)"
    50315032        " WHERE"
    5032         "   detRun.state = 'run'"
    50335033    );
     5034    // NOTE the above WHERE is completed with the following line:
     5035
     5036    // add the two required restrictions: detRun.state and detRun.mode
     5037    if ((value = psMetadataLookupStr(&status, config->args, "-select_state"))) {
     5038        psStringAppend(&query, " detRun.state = '%s'", value);
     5039    } else {
     5040        psStringAppend(&query, " detRun.state = 'run'");
     5041    }
    50345042
    50355043    if (config->where) {
Note: See TracChangeset for help on using the changeset viewer.