IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

fix bugs in testing for presence of search arguments

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.