IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25790


Ignore:
Timestamp:
Oct 7, 2009, 9:32:20 AM (17 years ago)
Author:
bills
Message:

fix bugs in testing for presence of search arguments

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r25777 r25790  
    623623        psStringAppend(&query, " WHERE %s", whereClause);
    624624        psFree(whereClause);
    625     } else if (!psMetadataLookupBool(NULL, config->args, "-all") && (faulted || where2)) {
    626         psStringAppend(&query, " WHERE chipRun.chip_id IS NOT NULL %s", where2);
     625    } else if (psMetadataLookupBool(NULL, config->args, "-all") || (faulted || where2)) {
     626        psStringAppend(&query, " WHERE chipRun.chip_id IS NOT NULL %s", where2 ? where2 : "");
    627627    } else {
    628628        psFree(where);
  • trunk/ippTools/src/difftool.c

    r25775 r25790  
    706706        psStringAppend(&query, " WHERE %s", whereClause);
    707707        psFree(whereClause);
    708     } else if (all) {
    709         if (where2) {
    710             psStringAppend(&query, " WHERE diffRun.diff_id is not null %s", where2);
    711         }
    712     } else {
     708    } else if (where2) {
     709        psStringAppend(&query, " WHERE diffRun.diff_id is not null %s", where2);
     710    } else if (!all) {
    713711        psError(PXTOOLS_ERR_DATA, true, "search parameters or -all are required");
    714712        return false;
Note: See TracChangeset for help on using the changeset viewer.