IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20959


Ignore:
Timestamp:
Dec 11, 2008, 9:44:10 AM (17 years ago)
Author:
bills
Message:

need to select stacks by filter. Fix error handling query string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_081204/ippTools/src/difftool.c

    r20954 r20959  
    11021102            return false;
    11031103        }
    1104         if (!p_psDBRunQuery(config->dbh, skycell_query, warp_id, warpQuery, stackQuery)) {
     1104        psString filter = psMetadataLookupStr(&mdok, row, "filter");
     1105        if (!mdok) {
     1106            psError(PXTOOLS_ERR_PROG, false, "filter not found");
     1107            psFree(warpQuery);
     1108            psFree(stackQuery);
     1109            psFree(skycell_query);
     1110            return false;
     1111        }
     1112        if (!p_psDBRunQuery(config->dbh, skycell_query, warp_id, filter, warpQuery, stackQuery)) {
    11051113            psError(PS_ERR_UNKNOWN, false, "database error");
    11061114            psFree(warpQuery);
     
    11621170            return false;
    11631171        }
     1172        psFree(query);
     1173        query = NULL;
    11641174
    11651175        if (!setdiffRunState(config, run->diff_id, "new")) {
Note: See TracChangeset for help on using the changeset viewer.