IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2008, 5:22:00 PM (18 years ago)
Author:
bills
Message:

changes to adapt the magic to the re-worked difference stage

File:
1 edited

Legend:

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

    r20954 r20964  
    160160            }
    161161        }
     162        // now add the user specified qualifiers
     163        if (psListLength(where->list)) {
     164            psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
     165            psStringAppend(&queryWhere, " %s %s", queryWhere == NULL ? "WHERE" : "AND", whereClause);
     166            psFree(whereClause);
     167        }
     168        psFree(where);
    162169        if (!queryWhere) {
    163170            psStringAppend(&queryWhere, " ");
     
    207214        psMetadata *row = output->data[i]; // Row of interest
    208215        psS64 exp_id = psMetadataLookupS64(NULL, row, "exp_id"); // Exposure identifier
    209         psS64 diff_id = psMetadataLookupS64(NULL, row, "diff_id"); // Exposure identifier
     216        psS64 diff_id = psMetadataLookupS64(NULL, row, "diff_id"); // difference identifier
    210217
    211218        // create a new magicRun for this group
Note: See TracChangeset for help on using the changeset viewer.