IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9407


Ignore:
Timestamp:
Oct 8, 2006, 12:58:06 PM (20 years ago)
Author:
eugene
Message:

added AND clause to restrict -updatedetrun to specified det_id (was causing havoc otherwise)

File:
1 edited

Legend:

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

    r9394 r9407  
    40694069        "   AND detInputExp.exp_tag = detResidExp.exp_tag"
    40704070        " WHERE"
    4071         "   detRun.state = 'run'"
    4072         " GROUP BY"
     4071        "   detRun.state = 'run'");
     4072   
     4073    // XXX this query was not restricted by det_id, resulting
     4074    // in an inconsistent UPDATE below.  I added this AND clause
     4075    // though there may be a cleaner method (EAM 2006.10.08)
     4076    psStringAppend (
     4077        &query,
     4078        "  AND detRun.position = '%s'", det_id);
     4079
     4080    psStringAppend (
     4081        &query,
     4082        " GROUP BY"
    40734083        "   detRun.position,"
    40744084        "   detRun.iteration,"
     
    40964106        return true;
    40974107    }
    4098 
     4108   
    40994109    // start a transaction so we don't end up with an incremented iteration
    41004110    // count but no detInputExps
Note: See TracChangeset for help on using the changeset viewer.