Changeset 12054 for trunk/ippTools/src/stacktool.c
- Timestamp:
- Feb 26, 2007, 11:46:59 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/stacktool.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/stacktool.c
r12052 r12054 295 295 // XXX instead of validiting it here we should just use forgein key 296 296 // constrants 297 if (!stackInputSkyfileInsert(config->dbh, 297 if (!stackInputSkyfileInsert(config->dbh, 298 298 (psS32)atoi(stack_id), 299 299 (psS32)atoi(warp_id) … … 319 319 320 320 // find all rawImfiles matching the default query 321 psString query = psStringCopy( 321 psString query = psStringCopy( 322 322 "SELECT\n" 323 323 " warpSkyfile.*\n" … … 330 330 " AND stackRun.tess_id = warpSkyfile.tess_id\n" 331 331 " WHERE\n" 332 " stackRun.state = 'run'\n" 332 " stackRun.state = 'run'\n" 333 333 ); 334 334 if (config->where) { … … 409 409 410 410 // find all rawImfiles matching the default query 411 psString query = psStringCopy( 411 psString query = psStringCopy( 412 412 "SELECT\n" 413 413 " stackRun.stack_id\n" … … 416 416 " USING(stack_id)\n" 417 417 " WHERE\n" 418 " stackRun.state = 'run'\n" 418 " stackRun.state = 'run'\n" 419 419 " AND stackSumSkyfile.stack_id IS NULL\n" 420 420 ); … … 532 532 // XXX instead of validiting it here we should just use forgein key 533 533 // constrants 534 if (!stackSumSkyfileInsert(config->dbh, 534 if (!stackSumSkyfileInsert(config->dbh, 535 535 (psS32)atoi(stack_id), 536 536 uri, … … 545 545 } 546 546 547 if ( setstackRunState(config, stack_id, "stop")) {547 if (!setstackRunState(config, stack_id, "stop")) { 548 548 if (!psDBRollback(config->dbh)) { 549 549 psError(PS_ERR_UNKNOWN, false, "database error"); … … 575 575 576 576 // find all rawImfiles matching the default query 577 psString query = psStringCopy( 577 psString query = psStringCopy( 578 578 "SELECT\n" 579 579 " stackSumSkyfile.*\n" … … 582 582 " USING(stack_id)\n" 583 583 " WHERE\n" 584 " stackRun.state = 'run'\n" 584 " stackRun.state = 'run'\n" 585 585 ); 586 586
Note:
See TracChangeset
for help on using the changeset viewer.
