Changeset 23688 for trunk/ippTools/src/dettool_residimfile.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/dettool_residimfile.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/dettool_residimfile.c
r23229 r23688 75 75 PS_ASSERT_PTR_NON_NULL(config, false); 76 76 77 77 78 78 PXOPT_LOOKUP_S64(det_id, config->args, "-det_id", true, false); // required 79 79 PXOPT_LOOKUP_S32(iteration, config->args, "-iteration", false, false); … … 84 84 PXOPT_LOOKUP_S64(exp_id, config->args, "-exp_id", true, false); // required 85 85 PXOPT_LOOKUP_STR(class_id, config->args, "-class_id", true, false); // required 86 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);87 PXOPT_LOOKUP_STR(uri, config->args, "-uri", ( code == 0), false); // Required if code== 088 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", ( code == 0), false); // Required if code== 086 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 87 PXOPT_LOOKUP_STR(uri, config->args, "-uri", (fault == 0), false); // Required if fault == 0 88 PXOPT_LOOKUP_STR(recipe, config->args, "-recip", (fault == 0), false); // Required if fault == 0 89 89 PXOPT_LOOKUP_F64(bg, config->args, "-bg", false, false); 90 90 PXOPT_LOOKUP_F64(bg_stdev, config->args, "-bg_stdev", false, false); … … 107 107 108 108 if (!detResidImfileInsert( 109 config->dbh,109 config->dbh, 110 110 det_id, 111 111 iteration, … … 134 134 user_5, 135 135 path_base, 136 "full",137 code136 "full", 137 fault 138 138 )) { 139 139 psError(PS_ERR_UNKNOWN, false, "database error"); … … 174 174 psStringAppend(&query, " %s", whereClause); 175 175 psFree(whereClause); 176 hasWhere = true;176 hasWhere = true; 177 177 } 178 178 psFree(where); … … 180 180 // restrict search to included imfiles 181 181 if (included) { 182 if (hasWhere) {183 psStringAppend(&query, " AND detInputExp.include = 1");184 } else {185 psStringAppend(&query, " WHERE detInputExp.include = 1");186 }187 hasWhere = true;182 if (hasWhere) { 183 psStringAppend(&query, " AND detInputExp.include = 1"); 184 } else { 185 psStringAppend(&query, " WHERE detInputExp.include = 1"); 186 } 187 hasWhere = true; 188 188 } 189 189 190 190 if (hasWhere) { 191 psStringAppend(&query, " AND");191 psStringAppend(&query, " AND"); 192 192 } else { 193 psStringAppend(&query, " WHERE");193 psStringAppend(&query, " WHERE"); 194 194 } 195 195 … … 249 249 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 250 250 PXOPT_COPY_STR(config->args, where, "-class_id", "class_id", "=="); 251 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");251 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 252 252 253 253 psString query = pxDataGet("dettool_revertresidimfile.sql"); … … 289 289 PXOPT_LOOKUP_STR(data_state, config->args, "-data_state", true, false); 290 290 if (!setResidImfileDataState(config, det_id, iteration, exp_id, class_id, data_state)) { 291 return false;291 return false; 292 292 } 293 293 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
