Changeset 14958
- Timestamp:
- Sep 20, 2007, 4:02:53 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r14214 r14958 119 119 // select newImfiles that: 120 120 // exp_id is in newExp 121 // don't have their exp_id in rawExp 121 // don't have their exp_id in rawExp 122 122 // XXX having the same exp_id in newExp and raw*Exp is probably an error 123 123 // that should be checked for … … 137 137 138 138 if (!p_psDBRunQuery(config->dbh, query)) { 139 // XXX PS_EXIT_PROG_ERROR (incorrect SQL) or SYS_ERROR (database comms)139 // XXX PS_EXIT_PROG_ERROR (incorrect SQL) or SYS_ERROR (database comms) 140 140 psError(PXTOOLS_ERR_PROG, false, "database error"); 141 141 psFree(query); … … 155 155 psError(PXTOOLS_ERR_PROG, false, "unknown error"); 156 156 } 157 157 158 158 return false; 159 159 } … … 167 167 simple = psMetadataLookupBool(&status, config->args, "-simple"); 168 168 if (!status) { 169 psError(PXTOOLS_ERR_PROG, false, "failed to lookup value for -simple");170 return false;169 psError(PXTOOLS_ERR_PROG, false, "failed to lookup value for -simple"); 170 return false; 171 171 } 172 172 … … 278 278 newImfileRow *object = newImfileObjectFromMetadata(output->data[i]); 279 279 // convert newImfile object -> rawImfile object 280 rawImfileRow *imfile = newToRawImfile(config, object); 280 rawImfileRow *imfile = newToRawImfile(config, object); 281 281 if (!imfile) { 282 282 // rollback … … 482 482 483 483 // return only exps that: 484 // are not in rawExp 484 // are not in rawExp 485 485 // have ALL of their imfiles in rawImfile (by count) 486 486 // and have no associated imfiles left in newImfile … … 499 499 500 500 if (!p_psDBRunQuery(config->dbh, query)) { 501 // XXX PS_EXIT_PROG_ERROR (incorrect SQL) or SYS_ERROR (database comms)501 // XXX PS_EXIT_PROG_ERROR (incorrect SQL) or SYS_ERROR (database comms) 502 502 psError(PXTOOLS_ERR_PROG, false, "database error"); 503 503 psFree(query); … … 529 529 simple = psMetadataLookupBool(&status, config->args, "-simple"); 530 530 if (!status) { 531 psError(PXTOOLS_ERR_PROG, false, "failed to lookup value for -simple");532 return false;531 psError(PXTOOLS_ERR_PROG, false, "failed to lookup value for -simple"); 532 return false; 533 533 } 534 534 … … 554 554 // exp_id is not in newImfile 555 555 // that the correct count of imfiles is in rawImfile 556 556 557 557 bool status = false; 558 558 psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id"); … … 672 672 // done) 673 673 if (detrend) { 674 // set the state for the newExp to stop 674 // set the state for the newExp to stop 675 675 if (!pxnewExpSetState(config, exp_id, "stop")) { 676 676 // rollback … … 683 683 return false; 684 684 } 685 psFree(rawExp); 685 686 continue; 686 687 }
Note:
See TracChangeset
for help on using the changeset viewer.
