IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 3, 2008, 9:53:10 AM (18 years ago)
Author:
eugene
Message:

fix elements for which the db table must be specified

File:
1 edited

Legend:

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

    r19334 r19339  
    120120
    121121    psMetadata *where = psMetadataAlloc();
    122     pxchipGetSearchArgs (config, where);
     122    pxchipGetSearchArgs (config, where); // rawExp only
     123    PXOPT_COPY_STR(config->args, where, "-label", "rawExp.label", "LIKE");
    123124
    124125    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
     
    232233
    233234    psMetadata *where = psMetadataAlloc();
    234     PXOPT_COPY_S64(config->args,  where, "-chip_id", "chip_id", "==");
    235     pxchipGetSearchArgs (config, where);
     235    pxchipGetSearchArgs (config, where); // rawExp, chipRun
     236    PXOPT_COPY_S64(config->args,  where, "-chip_id", "chipRun.chip_id", "==");
    236237
    237238    if (!psListLength(where->list)
     
    282283
    283284    psMetadata *where = psMetadataAlloc();
     285    pxchipGetSearchArgs (config, where); //chipRun, rawExp
    284286    PXOPT_COPY_S64(config->args, where, "-chip_id", "chipRun.chip_id", "==");
    285     pxchipGetSearchArgs (config, where);
    286287
    287288    psString query = pxDataGet("chiptool_pendingimfile.sql");
     
    454455
    455456    psMetadata *where = psMetadataAlloc();
     457    pxchipGetSearchArgs (config, where); // chipRun, chipProcessedImfile, rawExp
    456458    PXOPT_COPY_S64(config->args, where, "-chip_id", "chipRun.chip_id", "==");
    457459    PXOPT_COPY_STR(config->args, where, "-class_id", "chipProcessedImfile.class_id", "==");
    458     pxchipGetSearchArgs (config, where);
     460    PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "==");
     461    PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE");
    459462
    460463    psString query = pxDataGet("chiptool_processedimfile.sql");
     
    521524
    522525    psMetadata *where = psMetadataAlloc();
    523     pxchipGetSearchArgs (config, where);
    524 
    525     // from chipRun (XXX is missing from sql)
     526    pxchipGetSearchArgs (config, where); // chipProcessedImfile, rawExp
     527    PXOPT_COPY_S64(config->args, where, "-chip_id", "chipRun.chip_id", "==");
     528    PXOPT_COPY_STR(config->args, where, "-class_id", "chipProcessedImfile.class_id", "==");
     529    PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE");
    526530    PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "==");
    527     PXOPT_COPY_STR(config->args, where, "-label",     "chipRun.label", "==");
    528531    PXOPT_COPY_S16(config->args, where, "-code", "chipProcessedImfile.fault", "=");
    529532
     
    565568
    566569    psMetadata *where = psMetadataAlloc();
     570    pxchipGetSearchArgs (config, where); // chipProcessedImfile
    567571    PXOPT_COPY_S64(config->args, where, "-chip_id", "chip_id", "==");
    568     pxchipGetSearchArgs (config, where);
     572    PXOPT_COPY_S64(config->args, where, "-class_id", "class_id", "==");
     573    PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "==");
    569574    PXOPT_LOOKUP_S16(code, config->args, "-code", true, false);
    570575
Note: See TracChangeset for help on using the changeset viewer.