IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 29, 2012, 7:39:44 AM (14 years ago)
Author:
bills
Message:

Fix bug in staticskytool -result. It was listing the filter in the
output which causes num_filters entries when a staticskyRun has
multiple filters. Change the sql to group by sky_id and list num_filters
instead. Also allow selection by tess_id and skycell_id

File:
1 edited

Legend:

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

    r33043 r33384  
    635635    PXOPT_COPY_STR(config->args, where, "-label",      "staticskyRun.label", "==");
    636636    PXOPT_COPY_STR(config->args, where, "-data_group", "staticskyRun.data_group", "LIKE");
     637    PXOPT_COPY_STR(config->args, where, "-tess_id", "stackRun.tess_id", "LIKE");
     638    PXOPT_COPY_STR(config->args, where, "-skycell_id", "stackRun.skycell_id", "LIKE");
    637639    PXOPT_COPY_S16(config->args, where, "-fault",      "staticskyResult.fault", "==");
    638640
     
    659661    psFree(where);
    660662
     663    psStringAppend(&query, "\nGROUP BY sky_id");
     664
    661665    // treat limit == 0 as "no limit"
    662666    if (limit) {
    663667        psString limitString = psDBGenerateLimitSQL(limit);
    664         psStringAppend(&query, " %s", limitString);
     668        psStringAppend(&query, "\n%s", limitString);
    665669        psFree(limitString);
    666670    }
Note: See TracChangeset for help on using the changeset viewer.