IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:30:59 AM (18 years ago)
Author:
eugene
Message:

completely deprecate config->where; make all command-line handling consistent; move nearly all sql into share/*.sql; ensure consistency between args supplied and used

File:
1 edited

Legend:

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

    r18366 r18561  
    665665    PS_ASSERT_PTR_NON_NULL(config, false);
    666666
     667    psMetadata *where = psMetadataAlloc();
     668    PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
     669    PXOPT_COPY_S64(config->args, where, "-exp_id",  "exp_id", "==");
     670    PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "==");
     671
    667672    PXOPT_LOOKUP_S16(code, config->args, "-code", true, false);
    668673
    669     if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", config->where, code)) {
     674    if (!pxSetFaultCode(config->dbh, "chipProcessedImfile", where, code)) {
    670675        psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
    671676        return false;
    672677    }
     678    psFree(where);
    673679
    674680    return true;
Note: See TracChangeset for help on using the changeset viewer.