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

    r26981 r28558  
    275275    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
    276276
     277    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     278        psFree(where);
     279        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     280        return false;
     281    }
     282
    277283    psString query = pxDataGet("dettool_revertresidexp.sql");
    278284    if (!query) {
     
    294300    }
    295301    psFree(query);
    296 
    297     if (psDBAffectedRows(config->dbh) < 1) {
    298         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    299         return false;
    300     }
    301302
    302303    return true;
Note: See TracChangeset for help on using the changeset viewer.