IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9329


Ignore:
Timestamp:
Oct 5, 2006, 4:08:58 PM (20 years ago)
Author:
jhoblitt
Message:

fix query generation in -toresidexp
fix SQL in -tonormalizedstat

File:
1 edited

Legend:

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

    r9328 r9329  
    21762176        "     ON detInputExp.det_id = detStackedImfile.det_id"
    21772177        "     AND detInputExp.iteration = detStackedImfile.iteration"
    2178         " LEFT JOIN detNormlaizedStatImfile"
     2178        " LEFT JOIN detNormalizedStatImfile"
    21792179        "     ON detRun.position = detNormalizedStatImfile.det_id"
    2180         "     ON detRun.iteration = detNormalizedStatImfile.iteration"
     2180        "     AND detRun.iteration = detNormalizedStatImfile.iteration"
    21812181        " WHERE"
    21822182        "   detRun.state = 'run'"
     
    21852185        " GROUP BY"
    21862186        "     rawDetrendExp.exp_tag,"
     2187        "     detRun.iteration,"
    21872188        "     detRun.position"
    21882189        " HAVING MAX(rawDetrendExp.imfiles) = COUNT(detStackedImfile.class_id)"
     
    37973798        if (!status) {
    37983799            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");
     3800            return false;
     3801        }
     3802        if (!det_id) {
     3803            psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     3804            return false;
     3805        }
     3806        if (!psMetadataAddS32(where, PS_LIST_TAIL, "det_id", 0, "==", (psS32)atoi(det_id))) {
     3807            psError(PS_ERR_UNKNOWN, false, "failed to add item det_id");
    37993808            psFree(where);
    38003809            psFree(query);
    38013810            return false;
    38023811        }
    3803         if (det_id) {
    3804             if (!psMetadataAddStr(where, PS_LIST_TAIL, "det_id", 0, "==", det_id)) {
    3805                 psError(PS_ERR_UNKNOWN, false, "failed to add item det_id");
    3806                 psFree(where);
    3807                 psFree(query);
    3808                 return false;
    3809             }
    3810         }
     3812
    38113813        psS32 iteration = psMetadataLookupS32(&status, config->args, "-iteration");
    38123814        if (!status) {
Note: See TracChangeset for help on using the changeset viewer.