IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12054


Ignore:
Timestamp:
Feb 26, 2007, 11:46:59 AM (19 years ago)
Author:
Paul Price
Message:

Fixing logical bug.

File:
1 edited

Legend:

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

    r12052 r12054  
    295295    // XXX instead of validiting it here we should just use forgein key
    296296    // constrants
    297     if (!stackInputSkyfileInsert(config->dbh, 
     297    if (!stackInputSkyfileInsert(config->dbh,
    298298            (psS32)atoi(stack_id),
    299299            (psS32)atoi(warp_id)
     
    319319
    320320    // find all rawImfiles matching the default query
    321     psString query = psStringCopy( 
     321    psString query = psStringCopy(
    322322        "SELECT\n"
    323323        "   warpSkyfile.*\n"
     
    330330        "   AND stackRun.tess_id       = warpSkyfile.tess_id\n"
    331331        " WHERE\n"
    332         "   stackRun.state = 'run'\n" 
     332        "   stackRun.state = 'run'\n"
    333333    );
    334334    if (config->where) {
     
    409409
    410410    // find all rawImfiles matching the default query
    411     psString query = psStringCopy( 
     411    psString query = psStringCopy(
    412412        "SELECT\n"
    413413        "   stackRun.stack_id\n"
     
    416416        "   USING(stack_id)\n"
    417417        " WHERE\n"
    418         "   stackRun.state = 'run'\n" 
     418        "   stackRun.state = 'run'\n"
    419419        "   AND stackSumSkyfile.stack_id IS NULL\n"
    420420    );
     
    532532    // XXX instead of validiting it here we should just use forgein key
    533533    // constrants
    534     if (!stackSumSkyfileInsert(config->dbh, 
     534    if (!stackSumSkyfileInsert(config->dbh,
    535535            (psS32)atoi(stack_id),
    536536            uri,
     
    545545    }
    546546
    547     if (setstackRunState(config, stack_id, "stop")) {
     547    if (!setstackRunState(config, stack_id, "stop")) {
    548548        if (!psDBRollback(config->dbh)) {
    549549            psError(PS_ERR_UNKNOWN, false, "database error");
     
    575575
    576576    // find all rawImfiles matching the default query
    577     psString query = psStringCopy( 
     577    psString query = psStringCopy(
    578578        "SELECT\n"
    579579        "   stackSumSkyfile.*\n"
     
    582582        "   USING(stack_id)\n"
    583583        " WHERE\n"
    584         "   stackRun.state = 'run'\n" 
     584        "   stackRun.state = 'run'\n"
    585585    );
    586586
Note: See TracChangeset for help on using the changeset viewer.