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

    r26981 r28558  
    264264    PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "==");
    265265    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
     266   
     267    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     268        psFree(where);
     269        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     270        return false;
     271    }
    266272
    267273    psString query = pxDataGet("dettool_revertprocessedimfile.sql");
     
    284290    }
    285291    psFree(query);
    286 
    287     if (psDBAffectedRows(config->dbh) < 1) {
    288         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    289         return false;
    290     }
    291292
    292293    return true;
Note: See TracChangeset for help on using the changeset viewer.