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

    r26981 r28558  
    182182    PXOPT_COPY_STR(config->args, where, "-class_id",  "class_id", "==");
    183183    PXOPT_COPY_S16(config->args, where, "-fault",      "fault", "==");
     184   
     185    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     186        psFree(where);
     187        psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required");
     188        return false;
     189    }
    184190
    185191    psString query = pxDataGet("dettool_revertnormalizedstat.sql");
     
    202208    }
    203209    psFree(query);
    204 
    205     if (psDBAffectedRows(config->dbh) < 1) {
    206         psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
    207         return false;
    208     }
    209210
    210211    return true;
Note: See TracChangeset for help on using the changeset viewer.