Changeset 11979 for trunk/ippTools/src/difftool.c
- Timestamp:
- Feb 21, 2007, 11:52:12 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/difftool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/difftool.c
r11974 r11979 104 104 } 105 105 106 psString skycell_id = psMetadataLookupStr(&status, config->args, "-skycell_id"); 107 if (!status) { 108 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -skycell_id"); 109 return false; 110 } 111 if (!skycell_id) { 112 psError(PS_ERR_UNKNOWN, true, "-skycell_id is required"); 113 return false; 114 } 115 116 psString tess_id = psMetadataLookupStr(&status, config->args, "-tess_id"); 117 if (!status) { 118 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -tess_id"); 119 return false; 120 } 121 if (!tess_id) { 122 psError(PS_ERR_UNKNOWN, true, "-tess_id is required"); 123 return false; 124 } 125 106 126 psTime *registered = NULL; 107 127 { … … 124 144 workdir, 125 145 NULL, // dvodb 126 registered 146 registered, 147 skycell_id, 148 tess_id 127 149 ); 128 150 psFree(registered); … … 390 412 " LEFT JOIN p5DiffScfile\n" 391 413 " ON p5InputScfile.p5_id = p5DiffScfile.p5_id\n" 392 " AND p5InputScfile.skycell_id = p5DiffScfile.skycell_id\n"393 " AND p5InputScfile.tess_id = p5DiffScfile.tess_id\n"394 414 " WHERE\n" 395 415 " p5Run.state = 'run'\n" 396 416 " AND p5DiffScfile.p5_id IS NULL\n" 397 " AND p5DiffScfile.skycell_id IS NULL\n"398 " AND p5DiffScfile.tess_id IS NULL\n"399 417 ); 400 418 … … 479 497 } 480 498 481 psString skycell_id = psMetadataLookupStr(&status, config->args, "-skycell_id");482 if (!status) {483 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -skycell_id");484 return false;485 }486 if (!skycell_id) {487 psError(PS_ERR_UNKNOWN, true, "-skycell_id is required");488 return false;489 }490 491 psString tess_id = psMetadataLookupStr(&status, config->args, "-tess_id");492 if (!status) {493 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -tess_id");494 return false;495 }496 if (!tess_id) {497 psError(PS_ERR_UNKNOWN, true, "-tess_id is required");498 return false;499 }500 501 499 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 502 500 if (!status) { … … 525 523 if (!p5DiffScfileInsert(config->dbh, 526 524 (psS32)atoi(p5_id), 527 skycell_id,528 tess_id,529 525 uri, 530 526 bg, … … 553 549 psString query = psStringCopy( 554 550 "SELECT\n" 551 " p5Run.skycell_id,\n" 552 " p5Run.tess_id,\n" 555 553 " p5DiffScfile.*\n" 556 554 " FROM p5Run\n"
Note:
See TracChangeset
for help on using the changeset viewer.
