IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2010, 5:49:21 PM (16 years ago)
Author:
bills
Message:

add labels to the revert modes

File:
1 edited

Legend:

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

    r27171 r27182  
    526526    PXOPT_COPY_S64(config->args, where, "-fault", "req_id", "==");
    527527    PXOPT_COPY_STR(config->args, where, "-state", "pstampRequest.state", "==");
     528    pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE");
    528529
    529530    if (!psListLength(where->list)) {
     
    798799    PXOPT_COPY_S64(config->args, where, "-job_id", "job_id", "==");
    799800    PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "==");
    800     PXOPT_COPY_S64(config->args, where, "-fault",  "fault", "==");
     801    PXOPT_COPY_S64(config->args, where, "-fault",  "pstampJob.fault", "==");
    801802    PXOPT_COPY_S64(config->args, where, "-req_id_min",  "req_id", ">=");
     803    pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE");
    802804
    803805    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
     
    820822    }
    821823    if (psListLength(where->list)) {
    822         psString whereClause = psDBGenerateWhereConditionSQL(where, "pstampJob");
     824        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    823825        psStringAppend(&query, " AND %s", whereClause);
    824826        psFree(whereClause);
Note: See TracChangeset for help on using the changeset viewer.