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_stack.c

    r26981 r28558  
    287287    PXOPT_COPY_STR(config->args, where, "-class_id",  "class_id", "==");
    288288    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
     289   
     290    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     291        psFree(where);
     292        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     293        return false;
     294    }
    289295
    290296    psString query = pxDataGet("dettool_revertstacked.sql");
     
    307313    }
    308314    psFree(query);
    309 
    310     if (psDBAffectedRows(config->dbh) < 1) {
    311         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    312         return false;
    313     }
    314315
    315316    return true;
Note: See TracChangeset for help on using the changeset viewer.