IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2010, 1:45:08 PM (16 years ago)
Author:
bills
Message:

in the lookup modes make the where filter be a LIKE comparision instead of ==

File:
1 edited

Legend:

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

    r26981 r27210  
    558558    PXOPT_COPY_S64(config->args, where, "-exp_id", "rawExp.exp_id", "==");
    559559    PXOPT_COPY_STR(config->args, where, "-class_id", "rawImfile.class_id", "==");
    560     PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.telescope", "==");
    561     PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "==");
     560    PXOPT_COPY_STR(config->args, where, "-inst", "rawExp.camera", "==");
     561    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "LIKE");
    562562
    563563    psString query = pxDataGet("faketool_processedimfile.sql");
     
    568568
    569569    if (where && psListLength(where->list)) {
    570         psString whereClause = psDBGenerateWhereConditionSQL(where, "fakeProcessedImfile");
     570        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    571571        psStringAppend(&query, " AND %s", whereClause);
    572572        psFree(whereClause);
Note: See TracChangeset for help on using the changeset viewer.