IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2008, 1:56:48 PM (18 years ago)
Author:
Paul Price
Message:

Add label to the restriction.

File:
1 edited

Legend:

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

    r19390 r19418  
    7272    psMetadataAddF32(md,  PS_LIST_TAIL, "-solang_max",         0, "search by max solar angle", NAN);
    7373    psMetadataAddStr(md,  PS_LIST_TAIL, "-comment",            0, "search by comment field (LIKE comparison)", NULL);
    74     // psMetadataAddStr(md,  PS_LIST_TAIL, "-label",              0, "search by label (LIKE comparison)", NULL);
     74    psMetadataAddStr(md,  PS_LIST_TAIL, "-label",              0, "search by label", NULL);
    7575    return true;
    7676}
     
    8585    // processedimfile : rawExp, chipRun, chipProcessedImfile
    8686    // revertprocessedimfile : rawExp, chipProcessedImfile
    87     // updateprocessedimfile : chipProcessedImfile 
     87    // updateprocessedimfile : chipProcessedImfile
    8888    PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
    8989    PXOPT_COPY_STR(config->args, where, "-exp_name", "rawExp.exp_name", "==");
     
    124124    PXOPT_COPY_F32(config->args, where, "-solang_max", "rawExp.solang", "<");
    125125    PXOPT_COPY_STR(config->args, where, "-comment", "rawExp.comment", "LIKE");
     126    PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "==");
    126127    return true;
    127128}
     
    185186    PS_ASSERT_PTR_NON_NULL(config, false);
    186187    // note label == NULL should be explicitly allowed
    187  
     188
    188189    char *query = "UPDATE chipRun SET label = '%s' WHERE chip_id = %" PRId64;
    189190    if (!p_psDBRunQuery(config->dbh, query, label, chip_id)) {
     
    201202    PS_ASSERT_PTR_NON_NULL(config, false);
    202203    // note label == NULL should be explicitly allowed
    203  
     204
    204205    psString query = psStringCopy("UPDATE chipRun JOIN rawExp USING(exp_id) SET label = '%s'");
    205206
     
    238239            0x0, // chip_id
    239240            exp_id,
    240             "new",      // state               
     241            "new",      // state
    241242            workdir,
    242243            "dirty",    // workdir_state
Note: See TracChangeset for help on using the changeset viewer.