IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2010, 2:18:01 PM (16 years ago)
Author:
bills
Message:

first crack at queuing automatic updates for diffSkyfiles. Various bug fixes found in testing

File:
1 edited

Legend:

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

    r27740 r27795  
    530530
    531531    PXOPT_COPY_S64(config->args, where, "-req_id", "req_id", "==");
    532     PXOPT_COPY_S64(config->args, where, "-fault", "req_id", "==");
     532    PXOPT_COPY_S64(config->args, where, "-fault", "fault", "==");
    533533    PXOPT_COPY_STR(config->args, where, "-state", "pstampRequest.state", "==");
    534534    pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "LIKE");
     
    967967    PXOPT_LOOKUP_STR(component,   config->args, "-component",  true, false);
    968968    PXOPT_LOOKUP_STR(imagedb,     config->args, "-imagedb",  true, false);
    969     PXOPT_LOOKUP_STR(rlabel,      config->args, "-rlabel",  false, false);
     969    PXOPT_LOOKUP_STR(rlabel,      config->args, "-rlabel",  true, false);
    970970    PXOPT_LOOKUP_BOOL(need_magic, config->args, "-need_magic", false);
    971971    PXOPT_LOOKUP_BOOL(no_create,  config->args, "-no_create", false);
     
    983983    }
    984984
    985     psString query = pxDataGet("pstamptool_pendingdependent.sql");
     985    psString query = pxDataGet("pstamptool_getdependent.sql");
    986986    if (!query) {
    987987        psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
     
    11861186
    11871187    psMetadata *where = psMetadataAlloc();
    1188     PXOPT_COPY_S64(config->args, where, "-fault", "req_id", "==");
     1188    PXOPT_COPY_S64(config->args, where, "-fault", "pstampDependent.fault", "==");
    11891189    PXOPT_COPY_S64(config->args, where, "-dep_id", "dep_id", "==");
    11901190    pxAddLabelSearchArgs(config, where, "-label", "pstampRequest.label", "==");
     
    12011201    }
    12021202
    1203     psString whereClause = psDBGenerateWhereSQL(where, NULL);
    1204     psStringAppend(&query, " %s", whereClause);
     1203    psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
     1204    psStringAppend(&query, " AND %s", whereClause);
    12051205    psFree(whereClause);
    12061206    psFree(where);
Note: See TracChangeset for help on using the changeset viewer.