Changeset 9057 for trunk/ippTools/src/pxinject.c
- Timestamp:
- Sep 28, 2006, 5:25:54 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxinject.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxinject.c
r9028 r9057 52 52 bool status = false; 53 53 54 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); 55 if (!status) { 56 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag"); 57 return false; 58 } 59 if (!exp_tag) { 60 psError(PS_ERR_UNKNOWN, true, "-exp_tag is required"); 61 return false; 62 } 54 63 psString exp_id = psMetadataLookupStr(&status, config->args, "-exp_id"); 55 64 if (!status) { … … 98 107 } 99 108 100 if (!newExpInsert(config->dbh, exp_ id, camera, telescope, exp_type, imfiles)) {109 if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) { 101 110 psError(PS_ERR_UNKNOWN, false, "database error"); 102 111 return false; … … 110 119 bool status = false; 111 120 112 psString exp_ id = psMetadataLookupStr(&status, config->args, "-exp_id");121 psString exp_tag = psMetadataLookupStr(&status, config->args, "-exp_tag"); 113 122 if (!status) { 114 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_ id");123 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_tag"); 115 124 return false; 116 125 } 117 if (!exp_ id) {118 psError(PS_ERR_UNKNOWN, true, "-exp_ idis required");126 if (!exp_tag) { 127 psError(PS_ERR_UNKNOWN, true, "-exp_tag is required"); 119 128 return false; 120 129 } … … 147 156 } 148 157 149 if (!newImfileInsert(config->dbh, exp_ id, class, class_id, uri)) {158 if (!newImfileInsert(config->dbh, exp_tag, class, class_id, uri)) { 150 159 psError(PS_ERR_UNKNOWN, false, "database error"); 151 160 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
