IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 30, 2010, 10:04:58 AM (16 years ago)
Author:
heather
Message:

detrend reverts - can now revert -all in run state

File:
1 edited

Legend:

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

    r26981 r28558  
    306306    PXOPT_COPY_S64(config->args, where, "-det_id",    "det_id", "==");
    307307    PXOPT_COPY_S32(config->args, where, "-iteration", "iteration", "==");
    308     PXOPT_COPY_STR(config->args, where, "-fault",      "fault", "==");
     308    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
     309   
     310    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     311        psFree(where);
     312        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     313        return false;
     314    }
    309315
    310316    psString query = pxDataGet("dettool_revertdetrunsummary.sql");
     
    327333    }
    328334    psFree(query);
    329 
    330     if (psDBAffectedRows(config->dbh) < 1) {
    331         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    332         return false;
    333     }
    334335
    335336    return true;
Note: See TracChangeset for help on using the changeset viewer.