IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 12, 2014, 3:55:38 PM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippTools/src/staticskytool.c

    r36633 r37242  
    10571057    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    10581058    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
     1059    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    10591060
    10601061    psString query = pxDataGet("staticskytool_defineskycalrun.sql");
     
    10841085    }
    10851086
     1087    if (limit) {
     1088        psString limitString = psDBGenerateLimitSQL(limit);
     1089        psStringAppend(&query, "\n%s", limitString);
     1090        psFree(limitString);
     1091    }
    10861092
    10871093    if (!p_psDBRunQueryF(config->dbh, query, labelHook)) {
     
    11711177    PXOPT_COPY_S64(config->args, where, "-sky_id",   "sky_id",   "==");
    11721178    PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id",   "==");
     1179    PXOPT_COPY_STR(config->args, where, "-skycell_id",  "stackRun.skycell_id",    "==");
    11731180    PXOPT_COPY_STR(config->args, where, "-label",   "skycalRun.label",    "==");
    11741181    PXOPT_COPY_STR(config->args, where, "-state",   "skycalRun.state",    "==");
Note: See TracChangeset for help on using the changeset viewer.