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

    r26981 r28558  
    232232    PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "==");
    233233    PXOPT_COPY_S16(config->args, where, "-fault",   "fault", "==");
     234   
     235    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     236        psFree(where);
     237        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     238        return false;
     239    }
    234240
    235241    psString query = pxDataGet("dettool_revertprocessedexp.sql");
     
    252258    }
    253259    psFree(query);
    254 
    255     if (psDBAffectedRows(config->dbh) < 1) {
    256         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    257         return false;
    258     }
    259260
    260261    return true;
Note: See TracChangeset for help on using the changeset viewer.